mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Add retrigger to lfos
This commit is contained in:
parent
bd54be0c66
commit
56c3bbfa51
7 changed files with 21 additions and 20 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue