Set the power follower depending on the voice stealing algorithm also on voice re-creation
This commit is contained in:
parent
07f30af7f1
commit
f3776dcb35
1 changed files with 9 additions and 0 deletions
|
|
@ -1568,6 +1568,15 @@ void sfz::Synth::applySettingsPerVoice()
|
|||
voice->setPitchEGEnabledPerVoice(settingsPerVoice.havePitchEG);
|
||||
voice->setFilterEGEnabledPerVoice(settingsPerVoice.haveFilterEG);
|
||||
}
|
||||
|
||||
if (stealer.getStealingAlgorithm() ==
|
||||
VoiceStealing::StealingAlgorithm::EnvelopeAndAge) {
|
||||
for (auto& voice : voices)
|
||||
voice->enablePowerFollower();
|
||||
} else {
|
||||
for (auto& voice : voices)
|
||||
voice->disablePowerFollower();
|
||||
}
|
||||
}
|
||||
|
||||
void sfz::Synth::setupModMatrix()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue