Skip to main content

yin_fft_pitch

Function yin_fft_pitch 

Source
pub fn yin_fft_pitch(
    frame: &[f32],
    sample_rate: f32,
    min_hz: f32,
    max_hz: f32,
    threshold: f32,
    scratch: &mut [f32],
) -> Result<PitchEstimate, AudioError>
Expand description

Estimate the fundamental frequency of frame with YinFFT.

Semantics and return values match super::yin::yin_pitch; only the difference-function computation differs (FFT autocorrelation vs. direct loop). scratch must hold at least yin_fft_scratch_len floats.

ยงErrors