Estimate tempo, delay times and bar lengths
estimate_tempoTempo arithmetic for editing to music: pass tap timestamps (ms) to estimate BPM with a stability and confidence rating, or pass a known bpm. Either way it returns the beat length, a delay table (straight, dotted and triplet ms for each note value) and how many seconds a number of bars lasts in a time signature. It works on numbers you supply and does not analyse audio. Errors when neither input is given, the taps do not yield a tempo, bpm is outside 30-300, or the time signature is not one listed.
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 tap estimate when both are given. | |
| bars | No | Number of bars to convert into seconds. Default 16. | |
| timestampsMs | No | Tap times in ms from a monotonic clock (performance.now()), in order. | |
| timeSignature | No | Time signature for the bar length. Default 4/4. | 4/4 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | Yes | ||
| bars | Yes | ||
| delaysMs | Yes | ||
| tapAnalysis | Yes | ||
| quarterNoteMs | Yes | ||
| timeSignature | Yes | ||
| referenceToolUrl | Yes | ||
| barsDurationSeconds | Yes |