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 +}