Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
43c1486f7d | |||
26c9c70f3c |
1 changed files with 3 additions and 3 deletions
|
@ -249,10 +249,10 @@ 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]
|
||||
xn[ss+n] += xs[n, s+1] * w[n]
|
||||
xd[ss+n] += w²[n]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue