Merge pull request 'Bug fix: Swap l/r gains with temp variable' (#1768) from glossing/stereo-bug into main

Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1768
This commit is contained in:
Aria 2025-11-23 04:23:04 +01:00
commit f7f3aa7668

View file

@ -543,8 +543,9 @@ class SuperSawOscillatorProcessor extends AudioWorkletProcessor {
if (pn >= 1.0) pn -= 1.0;
this.phase[n] = pn;
// invert right and left gain
const tmp = gainL;
gainL = gainR;
gainR = gainL;
gainR = tmp;
}
}
return true;