diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-07-28 19:24:55 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-07-28 19:24:55 +0200 |
commit | d76db6f000844cac0afdff87e21abdf4ec009f07 (patch) | |
tree | 937565c68d2aec4105ee2c8c43e7a8d92771da1a /src/audioinputenginemidi.cc | |
parent | 62f7f2b2b004162b06af844dbc1a3cda696cfd9e (diff) |
Aftertouch choke if velocities > 0 instead of == 0 as this seem to be the vdrum vendor concensus.
Diffstat (limited to 'src/audioinputenginemidi.cc')
-rw-r--r-- | src/audioinputenginemidi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audioinputenginemidi.cc b/src/audioinputenginemidi.cc index ce3ce18..8732d8d 100644 --- a/src/audioinputenginemidi.cc +++ b/src/audioinputenginemidi.cc @@ -135,7 +135,7 @@ void AudioInputEngineMidi::processNote(const std::uint8_t* midi_buffer, break; case NoteAftertouch: - if(velocity == 0 && instrument_idx != -1) + if(velocity > 0 && instrument_idx != -1) { events.push_back({EventType::Choke, (std::size_t)instrument_idx, offset, .0f}); |