Added pitch wheel region activation

This commit is contained in:
Paul Ferrand 2020-01-20 06:29:27 +01:00
parent 53b702d07e
commit f66aedfc4f

View file

@ -512,6 +512,11 @@ void sfz::Synth::pitchWheel(int delay, int pitch) noexcept
ASSERT(pitch >= -8192); ASSERT(pitch >= -8192);
midiState.pitchBendEvent(pitch); midiState.pitchBendEvent(pitch);
for (auto& region: regions) {
region->registerPitchWheel(pitch);
}
for (auto& voice: voices) { for (auto& voice: voices) {
voice->registerPitchWheel(delay, pitch); voice->registerPitchWheel(delay, pitch);
} }