From 26c9c70f3c20129427b480a1fa2653f9d462f2af Mon Sep 17 00:00:00 2001 From: zymon Date: Mon, 13 Nov 2023 15:28:52 +0100 Subject: [PATCH] synthesis cosmetic change --- src/STFT.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/STFT.jl b/src/STFT.jl index 63d3d4c..b5204fe 100644 --- a/src/STFT.jl +++ b/src/STFT.jl @@ -249,8 +249,8 @@ function synthesis( xs = irfft(X, N, 1) # Convert segments to time-domain - @turbo for s ∈ 1:S - ss = (s-1)*H # Segment start + @turbo for s ∈ 0:(S-1) + ss = s*H # Segment shift for n = 1:W xn[ss+n] += xs[n, s] * w[n] xd[ss+n] += w²[n]