From 9b4f3a1be0df54614ffd5b2193c8f33174f7c83e Mon Sep 17 00:00:00 2001 From: Gordon JC Pearce Date: Thu, 18 Dec 2025 12:43:08 +0000 Subject: [PATCH] a couple of comments --- plugin/module.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/module.cpp b/plugin/module.cpp index bcad0f4..a570676 100644 --- a/plugin/module.cpp +++ b/plugin/module.cpp @@ -29,6 +29,7 @@ void Module::run(Voice* voice) { // work out the "master" cutoff vcfCutoff = patchRam.vcfFreq / 127.0f; vcfCutoff += lfo * (patchRam.vcfLfo/127.0f); + // also needs pitch bend amount for the base level for (uint32_t i = 0; i < NUM_VOICES; i++) { switch (voice[i].envPhase) { @@ -47,5 +48,6 @@ void Module::run(Voice* voice) { voice[i].env = 1.0f; voice[i].envPhase = 2; // flip to decay } + // per voice we need to calculate the key follow amount and envelope amount } -} \ No newline at end of file +}