diff --git a/src/util/window.rs b/src/util/window.rs index 2abae9e8..7aa4028b 100644 --- a/src/util/window.rs +++ b/src/util/window.rs @@ -6,7 +6,7 @@ use std::f32; /// /// pub fn hann(size: usize) -> Vec { - // We want to scale `[0, size]` to `[0, pi]`. + // We want to scale `[0, size - 1]` to `[0, pi]`. let scale = (size as f32 - 1.0).recip() * f32::consts::PI; (0..size) .map(|i| {