analyze_audio_file
Analyze local audio files to measure loudness, true peak, format, and optional spectral, pitch, or note-event data before Ableton Live edits.
Instructions
Measure local source loudness, true peak, format, and optional spectrum, spectrogram, monophonic pitch or note events. A target note proposes a review-only whole-clip offset for stable monophonic windows; no edits or correction of changing notes. Loudness uses the source stream; optional analyses use the selected channel. Excludes Live processing. Requires ffmpeg/ffprobe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourcePath | Yes | Absolute local audio file. | |
| channelIndex | No | Source channel for optional analyses; zero-based, default 0. | |
| includePitch | No | Monophonic channel pitch in overlapping 256-ms frames; requires 256+ ms. | |
| startSeconds | No | Window start. | |
| targetMidiNote | No | MIDI reference at A4=440 Hz; enables monophonic pitch analysis, not correction. | |
| durationSeconds | No | Window duration, defaults to 10 seconds. | |
| includeSpectrum | No | One 4096-sample spectral frame at window start. | |
| includeWaveform | No | Up to 1024 contiguous channel min/max/RMS buckets at 48 kHz. | |
| includeTransients | No | Channel onset candidates at 10-ms resolution; not Live warp/slice markers. | |
| includePitchEvents | No | Approximate monophonic channel note events for review; no correction. | |
| includeSpectrogram | No | Up to 64 spectral frames at 48 kHz. | |
| includeResonanceCandidates | No | Narrow spectral features persisting across 4+ frames; heuristic, not confirmed resonances or EQ advice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||