Estimate tempo from taps or a BPM
estimate_tempoEstimate BPM from tap timestamps with a steadiness spread, or convert a known tempo to beat and 4/4 bar lengths in milliseconds for cutting edits on the beat.
Instructions
Tempo arithmetic for editing to music: pass tap timestamps (ms) to estimate BPM, with a spread figure that shows how steady the taps were, or pass a known bpm to get the beat and 4/4 bar length in ms for cutting on the beat. It works on numbers you supply and does not analyse audio. Taps more than 2.5 s apart restart the count, and outlier intervals (a missed or doubled tap) are discarded. Errors when neither input is given, fewer than two usable taps remain, or bpm is outside 20-400.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "estimate_tempo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Known tempo in beats per minute. Used instead of the estimate when both are given. | |
| timestampsMs | No | Tap times in ms from a monotonic clock (performance.now()), in order. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | Yes | ||
| barMs4_4 | Yes | ||
| estimate | Yes | ||
| quarterNoteMs | Yes | ||
| referenceToolUrl | Yes |