Add retrigger to lfos

This commit is contained in:
Roland Rabien 2023-09-24 17:49:53 -07:00
commit 56c3bbfa51
7 changed files with 21 additions and 20 deletions

View file

@ -61,8 +61,8 @@ void WavetableVoice::noteStarted()
for (auto& a : modADSRs)
a.noteOn();
for (auto& l : modLFOs)
l.noteOn();
for (auto idx = 0; auto& l : modLFOs)
l.noteOn (proc.lfoParams[idx++].retrig->getBoolValue() ? -1 : rng.nextFloat());
modStepLFO.reset();
modStepLFO.noteOn();
@ -91,15 +91,11 @@ void WavetableVoice::noteRetriggered()
updateParams (0);
for (auto& osc : oscillators)
osc.noteOn();
filterADSR.noteOn();
for (auto& a : modADSRs)
a.noteOn();
modStepLFO.noteOn();
adsr.noteOn();
}