pub fn hann_window(out: &mut [f32]) -> Result<(), AudioError>Expand description
Fill out with a Hann window of length out.len().
Uses the periodic (DFT-even) convention w[n] = 0.5·(1 − cos(2πn/N))
with denominator N = out.len() (not N−1). This is the correct convention
for spectral analysis / overlap-add STFT, where the window tiles seamlessly.
Consequently w[0] = 0 and, for even N, the centre sample w[N/2] = 1;
the final sample w[N−1] is not zero (that is the symmetric convention).
Returns AudioError::InvalidParameter if out is empty.