cleanup envelope parameter mappings

This commit is contained in:
2025-12-26 18:42:14 -06:00
parent c5d0fe6091
commit cc11cfe63a
9 changed files with 51 additions and 8 deletions

View File

@@ -99,6 +99,12 @@ void Synth::process(float* out, uint32_t nFrames, uint32_t sampleRate) {
out[2*i] = sampleOut; // left
out[2*i+1] = sampleOut; // right
// write to scope buffer
if (scope_) {
scope_->push(sampleOut); // visualization tap
// set trigger info here too
}
// sampling business
phase_ += phaseInc;
if (phase_ > 2.0f * M_PI) phase_ -= 2.0f * M_PI;