summaryrefslogtreecommitdiff
path: root/src/audioinputenginemidi.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/audioinputenginemidi.cc')
-rw-r--r--src/audioinputenginemidi.cc2
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});