Skip to main content

Module pitch

Module pitch 

Source
Expand description

Pitch estimation (real YIN / YinFFT + confidence, pitch filter, vibrato).

Real fundamental-frequency estimation: difference function → cumulative-mean-normalised difference → absolute-threshold lag selection → parabolic interpolation → f0 + aperiodicity. This replaces the coarse integer-lag argmin previously in music.rs. Re-exports only (AU-PITCH-1).

Re-exports§

pub use confidence::pitch_confidence;
pub use pitch_filter::pitch_filter;
pub use vibrato::detect_vibrato;
pub use vibrato::vibrato_scratch_len;
pub use vibrato::Vibrato;
pub use yin::yin_pitch;
pub use yin_fft::yin_fft_pitch;
pub use yin_fft::yin_fft_scratch_len;

Modules§

confidence
Map a YIN aperiodicity (the CMND value at the selected lag) to a voicing confidence in [0, 1], delegated to [etalon_signal::pitch::yin_pitch_confidence].
pitch_filter
Post-process a raw pitch track: fold octave errors back onto the local median and drop isolated outliers, using a caller-supplied scratch buffer (no per-call allocation).
vibrato
Detect vibrato — a quasi-periodic modulation of the fundamental — from a pitch track, by locating the peak of the pitch-contour spectrum.
yin
Full time-domain YIN fundamental-frequency estimator (de Cheveigné & Kawahara, 2002), delegated to [etalon_signal::pitch].
yin_fft
YinFFT: the YIN difference function computed via an FFT autocorrelation rather than the O(W · max_lag) direct double loop.

Structs§

PitchEstimate
One fundamental-frequency estimate for a single frame.