refactor: stereo sample support + channelwise fx

This commit is contained in:
Felix Roos 2025-06-09 09:52:29 +02:00
parent 73ef43dd2c
commit 1081fc69e9
No known key found for this signature in database
2 changed files with 101 additions and 77 deletions

View file

@ -29,7 +29,7 @@ class DoughProcessor extends AudioWorkletProcessor {
this.dough.update();
for (let c = 0; c < output.length; c++) {
//prevent speaker blowout via clipping if threshold exceeds
output[c][i] = clamp(this.dough.channels[c], -1, 1);
output[c][i] = clamp(this.dough.out[c], -1, 1);
}
}
return true; // keep the audio processing going