Skip to main content

blackman_window

Function blackman_window 

Source
pub fn blackman_window(out: &mut [f32]) -> Result<(), AudioError>
Expand description

Fill out with a Blackman window of length out.len().

Periodic convention using the classic (unexact) coefficients: w[n] = a0 − a1·cos(2πn/N) + a2·cos(4πn/N) with a0 = 0.42, a1 = 0.5, a2 = 0.08 and denominator N = out.len(). Lower side lobes than Hann at the cost of a wider main lobe.

Returns AudioError::InvalidParameter if out is empty.