mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Added retrig to ADSRs
This commit is contained in:
parent
2190db8fc6
commit
bd58bd1584
7 changed files with 82 additions and 53 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue