Christmas cleaning

This commit is contained in:
2025-12-25 00:13:44 -06:00
parent 37b3c6ed66
commit 65fd963a3f
10 changed files with 198 additions and 125 deletions

View File

@@ -88,7 +88,7 @@ void Synth::process(float* out, uint32_t nFrames, uint32_t sampleRate) {
float sineSample = std::sin(phase_);
float squareSample = -0.707f;
if(phase_ >= M_PI) squareSample = 0.707f;
sampleOut = sineSample * gain;
sampleOut = squareSample * gain;
// write to buffer
out[2*i] = sampleOut; // left