refactor: stereo sample support + channelwise fx
This commit is contained in:
parent
73ef43dd2c
commit
1081fc69e9
2 changed files with 101 additions and 77 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue