Analyze Audio File
audio_analyzeDetect BPM, musical key, beat/onset timings, loudness, and optional MIDI melody notes from an audio file offline to prepare samples for tempo/key matching, slicing, or DNB flips.
Instructions
Analyze an audio file offline to detect BPM, musical key, beat/onset timings, loudness, and optional MIDI melody notes.
Use before song_to_dnb_flip, audio_slice, or matching FL's project tempo and key
to a sample; use audio_loudness_report for broadcast-grade BS.1770 mastering metrics,
or voice_transcribe_file for standalone note transcription with pitch-range controls.
Requires the [audio] extra (ok=False if missing or file not found).
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": {
"path": "<path>"
},
"name": "audio_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to an audio file (WAV, FLAC, MP3, OGG, AIFF) to analyze. | |
| polyphonic | No | When `extract_melody=True`, set True to use Spotify Basic Pitch for chords/full mixes (requires `[polyphonic]` extra) instead of monophonic pyin. | |
| extract_melody | No | If True, also transcribe pitch notes into `melody_notes`; False (default) skips pitch extraction for faster analysis. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||