Added retrig to ADSRs

This commit is contained in:
Roland Rabien 2023-10-07 10:57:13 -07:00
commit bd58bd1584
7 changed files with 82 additions and 53 deletions

View file

@ -119,12 +119,15 @@ void WavetableVoice::noteRetriggered()
updateParams (0);
filterADSR.noteOn();
if (proc.filterParams.retrig->getBoolValue())
filterADSR.noteOn();
for (auto& a : modADSRs)
a.noteOn();
for (auto idx = 0; auto& a : modADSRs)
if (proc.envParams[idx++].retrig->getBoolValue())
a.noteOn();
adsr.noteOn();
if (proc.adsrParams.retrig->getBoolValue())
adsr.noteOn();
}
void WavetableVoice::noteStopped (bool allowTailOff)