---
title: "audio.detectBeats: Detect Beats — Film kit command — Kition"
description: "Finds the beats of music: an audio `clip` on the timeline (times in the sequence) or a project `item` (times from its start). Answers {bpm, confidence 0–1, beats in seconds, times in ticks, frames}; speech, silence and noise are an error (no beat). `markers: true` also adds a sequence marker (`name`, `color`) on every beat as one undo step, for snapping edits to them."
canonical: "https://developer.kition.ai/docs/kits/film/commands/audio.detectBeats"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/audio.detectBeats](https://developer.kition.ai/docs/kits/film/commands/audio.detectBeats)

# audio.detectBeats

**Detect Beats.** Finds the beats of music: an audio `clip` on the timeline (times in the sequence) or a project `item` (times from its start). Answers {bpm, confidence 0–1, beats in seconds, times in ticks, frames}; speech, silence and noise are an error (no beat). `markers: true` also adds a sequence marker (`name`, `color`) on every beat as one undo step, for snapping edits to them.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `clip` | `integer` | no |  |
| `color` | `any` | no | label? |
| `item` | `integer` | no |  |
| `markers` | `boolean` | no |  |
| `name` | `string` | no |  |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "audio.detectBeats" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `clip`, `color`, `item`, `markers`, `name`. film_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "clip": {
      "type": "integer",
      "x-khp-types": [
        "Clip"
      ]
    },
    "color": {
      "description": "label?"
    },
    "item": {
      "type": "integer",
      "x-khp-types": [
        "Item"
      ]
    },
    "markers": {
      "default": false,
      "type": "boolean"
    },
    "name": {
      "default": "Beat",
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
