Expand description
Streaming / block feature extraction (CPU reference path).
Re-exports§
pub use cqt::forward_cqt_mono;pub use energy::frame_energy;pub use energy::frame_zcr;pub use stft_stream::log_mel_from_mono;pub use stft_stream::magnitude_stft_chunk;pub use stft_stream::StreamingStft;
Modules§
- contours
- Pitch contours / Melodia predominant melody / contour segmentation. Re-exports only (AU-PITCH-2).
- cqt
- CPU constant-Q magnitude spectrum (cold/stream-friendly block).
- cqt_
stream - Streaming multi-frame Constant-Q transform + inverse CQT. Re-exports only (AU-CQT-STREAM).
- energy
- Time-domain features.
- envelope
- Envelope / SFX temporal descriptors (caller-buffered, zero-heap hot path).
- fft
- FFT primitives for the CPU reference path (caller-buffered, zero-heap).
- filters
- IIR filter bank — biquad engine + RBJ cookbook designs + streaming helpers.
- framing
- Framing / overlap-add / ISTFT resynthesis (CPU reference path).
- loudness
- Loudness / dynamics: RMS, EBU R128 / BS.1770 loudness, LRA, ReplayGain, crest factor, statistical moments. Re-exports only (AU-LOUD).
- mel
- Mel / MFCC / DCT / Bark / ERB psychoacoustic features.
- multipitch
- Multi-pitch estimation (Klapuri iterative spectral subtraction / multi-Melodia). Re-exports only (AU-MULTIPITCH).
- peaks
- Peak detection / spectral peaks / correlation (caller-buffered, zero-heap hot path). Each leaf module holds exactly one public function.
- pitch
- Pitch estimation (real YIN / YinFFT + confidence, pitch filter, vibrato).
- pitch_
midi - Pitch → MIDI note ON/OFF events, Audio2MIDI. Re-exports only (AU-PITCH-MIDI).
- rhythm
- Rhythm — spectral-flux onset, autocorrelation tempogram, comb-filter beat
tracking, and BPM histogram (AU-RHY). Real implementations replacing the
energy-novelty / median-IOI placeholders in
music.rs. - salience
- Pitch salience function + peaks (melody foundation). Re-exports only (AU-PITCH-2).
- spectral
- Spectral descriptors (flux, HFC, rolloff, flatness, contrast, LPC, …).
- stft_
stream - Bounded streaming STFT (real radix-2 FFT via
features::fft; power-of-two frames ≤ 512). - structure
- Music structure analysis (AU-STRUCT) — self-similarity matrix, Foote novelty
curve, and novelty-peak segmentation. This replaces the energy-hysteresis
“structure” heuristic in
music.rswith a real SSM + novelty approach. - tonal
- Tonal — real HPCP, tuning, key/scale, chord (declared assumptions, abstain).
- vad
- Voice activity detection: a multi-feature, epistemic proposal stack (energy above an adaptive noise floor + spectral flatness + ZCR), with hysteresis/hangover segmentation. Silence is never coerced into speech.
- window
- Window functions (periodic / DFT-even convention) and application.