Skip to content

Commit

Permalink
no delay on stock fft size
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Sep 12, 2024
1 parent d3b5a6a commit 2cea7a5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 19 deletions.
10 changes: 9 additions & 1 deletion src/website/js/renderer/channel_analysers.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ export function updateFftSize()
{
// calculate delay:
// 16384 fft size = 0.1 s
this.delayNode.delayTime.value = fftSize / this.synth.context.sampleRate / 2;
if(fftSize > 4096)
{
this.delayNode.delayTime.value = fftSize / this.synth.context.sampleRate / 2;
}
else
{
this.delayNode.delayTime.value = 0;
console.log('no')
}
}
}
}
Expand Down
34 changes: 17 additions & 17 deletions src/website/minified/demo_main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/website/minified/local_main.min.js

Large diffs are not rendered by default.

0 comments on commit 2cea7a5

Please sign in to comment.