Film kit command
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)
- 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
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
{
"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/[email protected] and the kit itself (film_commands through @kition/[email protected], built from KitionAI/kition-film@375db59). As data: commands.jsonl.