From d1d659bb42eb1e2c86ce81455c7c6cb440f8fda0 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Mon, 8 Feb 2021 12:20:10 +0100 Subject: [PATCH] Use the normal CC codepath, to also trigger notes --- src/sfizz/Synth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfizz/Synth.cpp b/src/sfizz/Synth.cpp index 242f6bba..00ee4bee 100644 --- a/src/sfizz/Synth.cpp +++ b/src/sfizz/Synth.cpp @@ -1223,8 +1223,6 @@ void Synth::aftertouch(int delay, uint8_t aftertouch) noexcept const auto normalizedAftertouch = normalize7Bits(aftertouch); impl.resources_.midiState.channelAftertouchEvent(delay, normalizedAftertouch); - impl.resources_.midiState.ccEvent(delay, ExtendedCCs::channelAftertouch, normalizedAftertouch); - for (auto& region : impl.regions_) { region->registerAftertouch(aftertouch); @@ -1233,6 +1231,8 @@ void Synth::aftertouch(int delay, uint8_t aftertouch) noexcept for (auto& voice : impl.voiceManager_) { voice.registerAftertouch(delay, aftertouch); } + + impl.performHdcc(delay, ExtendedCCs::channelAftertouch, normalizedAftertouch, false); } void Synth::tempo(int delay, float secondsPerBeat) noexcept