Use the normal CC codepath, to also trigger notes
This commit is contained in:
parent
6deb3d37d7
commit
d1d659bb42
1 changed files with 2 additions and 2 deletions
|
|
@ -1223,8 +1223,6 @@ void Synth::aftertouch(int delay, uint8_t aftertouch) noexcept
|
||||||
|
|
||||||
const auto normalizedAftertouch = normalize7Bits(aftertouch);
|
const auto normalizedAftertouch = normalize7Bits(aftertouch);
|
||||||
impl.resources_.midiState.channelAftertouchEvent(delay, normalizedAftertouch);
|
impl.resources_.midiState.channelAftertouchEvent(delay, normalizedAftertouch);
|
||||||
impl.resources_.midiState.ccEvent(delay, ExtendedCCs::channelAftertouch, normalizedAftertouch);
|
|
||||||
|
|
||||||
|
|
||||||
for (auto& region : impl.regions_) {
|
for (auto& region : impl.regions_) {
|
||||||
region->registerAftertouch(aftertouch);
|
region->registerAftertouch(aftertouch);
|
||||||
|
|
@ -1233,6 +1231,8 @@ void Synth::aftertouch(int delay, uint8_t aftertouch) noexcept
|
||||||
for (auto& voice : impl.voiceManager_) {
|
for (auto& voice : impl.voiceManager_) {
|
||||||
voice.registerAftertouch(delay, aftertouch);
|
voice.registerAftertouch(delay, aftertouch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl.performHdcc(delay, ExtendedCCs::channelAftertouch, normalizedAftertouch, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Synth::tempo(int delay, float secondsPerBeat) noexcept
|
void Synth::tempo(int delay, float secondsPerBeat) noexcept
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue