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
AudioError::InvalidParameteron a non-positive/inconsistent rate or band, or a frame too short to form a usable lag range.AudioError::OutputBufferTooSmallifscratchis undersized.