Swap with temp variable

This commit is contained in:
Aria
2025-11-22 20:51:30 -06:00
parent 2518b2aed2
commit adc3a9ac6c
+2 -1
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;