detect_common_bpm
Find the most common BPM from a set of audio file paths to verify tempo consistency before setting the project tempo. Returns the winning BPM, vote distribution, and confidence.
Instructions
Given a JSON array of file paths, return the most common BPM parsed from their filenames.
Useful after scan_audio_folder when the AI has narrowed down a set
of candidate loops and wants to confirm they agree on tempo before
setting the project BPM.
Args: file_paths: JSON array of absolute paths.
Returns: detected_bpm: the most common value (int), or None if none found. bpm_votes: full distribution of BPMs across the set. confidence: fraction of files that agreed with the winner. hint: a one-line next-step suggestion.
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": {
"file_paths": "<file_paths>"
},
"name": "detect_common_bpm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_paths | Yes |