Compare commits

...

2 Commits

Author SHA1 Message Date
Felix Roos 3241f830d4 Merge branch 'main' into fft-clamp 2023-09-17 17:27:15 +02:00
Felix Roos 15233c6d34 clamp fft value to prevent hard error 2023-08-28 09:02:31 +02:00
+1
View File
@@ -361,6 +361,7 @@ export const superdough = async (value, deadline, hapDuration) => {
// analyser
let analyserSend;
if (analyze) {
fft = clamp(fft, 1, 10);
const analyserNode = getAnalyser(/* orbit, */ 2 ** (fft + 5));
analyserSend = effectSend(post, analyserNode, analyze);
}