Swap with temp variable

This commit is contained in:
Aria 2025-11-22 20:51:30 -06:00
parent 2518b2aed2
commit adc3a9ac6c

View file

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