mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-09 15:57:10 -04:00
clamp fft value to prevent hard error
This commit is contained in:
@@ -276,6 +276,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user