Skip to main content

yin_fft_scratch_len

Function yin_fft_scratch_len 

Source
pub fn yin_fft_scratch_len(n: usize, max_lag: usize) -> usize
Expand description

Minimum scratch length (in f32) required for a frame of n samples with a maximum lag of max_lag. l is the FFT size (n rounded up to a power of two). Exposed so callers can size the buffer without guessing.