Skip to content

Commit 1de1d8a

Browse files
fix post-filter shift
1 parent 42ae83c commit 1de1d8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ function renderWavesImpl(settings, fft, p) { return (playback = false) => {
312312

313313
// time shift the signal by half the filter order to compensate for the delay
314314
// introduced by the FIR filter
315-
reconstructed.forEach( (x, n, arr) => arr[n - 100] = x );
315+
reconstructed.forEach( (x, n, arr) => arr[n - Math.floor(settings.antiimaging)] = x );
316316

317317
// render FFTs --------------------------------------------------------------
318318
// TODO: apply windows?

0 commit comments

Comments
 (0)