Function rubato::calculate_cutoff

source ·
pub fn calculate_cutoff<T>(npoints: usize, windowfunc: WindowFunction) -> T
where T: Sample,
Expand description

Calculate a suitable relative cutoff frequency for the given sinc length using the given window function. The result is based on an approximation, which gives good results for sinc lengths from 32 to 2048.