Detect Beats
detect_beatsEstimate a steady beat grid from a local audio or video file, returning BPM, phase-aligned beat times, and confidence without altering your Premiere project.
Instructions
Estimate a steady beat grid from a local audio or video file without changing Premiere. FFmpeg decodes at most 30 minutes to a bounded mono analysis stream; local onset autocorrelation returns BPM, phase-aligned beat times, confidence, and half/double-time alternatives.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"media_path": "<media_path>"
},
"name": "detect_beats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_beats | No | Maximum beat times returned (default: 500). | |
| media_path | Yes | Absolute path to an existing local audio or video file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool completed successfully. | |
| data | No | Tool-specific result data when ok is true; on failure, diagnostic detail when the tool provides it. | |
| tool | Yes | The registered MCP tool name. | |
| error | No | Failure detail when ok is false. |