detect_beats
Analyze an audio track to identify its BPM and beat timestamps, enabling you to align video clip seams to the music's rhythm before stitching.
Instructions
Detect tempo and beat times of an audio track — pure analysis, no output.
Returns {"bpm": float, "beats": [seconds, ...]} with beat times ascending from the track start and covering the whole file. The tempo is reported at its lower octave, pinned into [min_bpm, max_bpm] (a track that reads as 172 BPM comes back as ~86) — pass the window to control which octave the grid lands on. Use this to beat-snap multi-clip seams onto a music bed before stitching.
Silence / no detectable pulse returns {"bpm": 0.0, "beats": []} (not an error).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_bpm | No | ||
| min_bpm | No | ||
| audio_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||