mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Add retrig to OSCs
This commit is contained in:
parent
99b2d2b102
commit
73b34ded3f
6 changed files with 13 additions and 7 deletions
|
|
@ -51,11 +51,11 @@ void WavetableVoice::noteStarted()
|
|||
updateParams (0);
|
||||
snapParams();
|
||||
|
||||
for (auto& osc : oscillators)
|
||||
osc.noteOn();
|
||||
for (auto idx = 0; auto& osc : oscillators)
|
||||
osc.noteOn (proc.oscParams[idx++].retrig->getBoolValue() ? 0.0f : proc.rng.nextFloat());
|
||||
|
||||
noise.noteOn();
|
||||
sub.noteOn();
|
||||
sub.noteOn (proc.subParams.retrig->getBoolValue() ? 0.0f : proc.rng.nextFloat());
|
||||
|
||||
filterADSR.noteOn();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue