just setting pw to 0 causes a DC offset, let's not eh

This commit is contained in:
Gordon JC Pearce 2024-09-09 15:54:08 +01:00
parent f0400b13db
commit bde0863a15

View File

@ -41,7 +41,7 @@ void Voice::run(Synth &s, float *buffer, uint32_t samples) {
// there's a resistor on the panel board to sprag the range
float pw = s.ff4f / 32768.0f;
float sqr = 0.175;
float sqr = (s.patchRam.switch1 & 0x08) ? 0.175 : 0;
float saw = (s.patchRam.switch1 & 0x10) ? 0.220 : 0;
float sub = (s.patchRam.sub / 127.0f) * 0.275;