detect_common_bpm
Analyze audio file paths to find the most common BPM from filenames, returning the value, vote distribution, and confidence to confirm tempo alignment before setting the project BPM.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_paths | Yes |