analyze_audio_file
Analyze local audio files to measure loudness, true peak, format, and optional spectral or pitch characteristics.
Instructions
Measure local source audio loudness, true peak, format, optional spectral peaks, spectrogram and monophonic pitch. Loudness measures the source stream; channel selection applies to optional analyses. Not Live processing or pitch correction. Requires ffmpeg and ffprobe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourcePath | Yes | Absolute local audio file. | |
| channelIndex | No | Zero-based source channel for waveform, spectrum, spectrogram and pitch; defaults to zero. | |
| includePitch | No | Estimate selected-channel monophonic pitch with overlapping 256-ms frames across the window; requires at least 256 ms. | |
| startSeconds | No | Window start. | |
| targetMidiNote | No | Measure monophonic cents deviation against this explicit MIDI note at A4=440 Hz; enables pitch analysis, not pitch correction. | |
| durationSeconds | No | Window duration, defaults to 10 seconds. | |
| includeSpectrum | No | Include one 4096-sample spectral frame at the window start. | |
| includeWaveform | No | Include up to 1024 contiguous selected-channel min/max/RMS waveform buckets at 48 kHz. | |
| includeTransients | No | Find selected-channel source-audio onset candidates at 10-ms resolution; not Live warp/slice markers. | |
| includeSpectrogram | No | Include up to 64 time-resolved spectral frames, resampled to 48 kHz. | |
| includeResonanceCandidates | No | Report heuristic persistent narrow spectral features across at least four sampled frames; not confirmed resonances or automatic EQ advice. |