summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/audioinputenginemidi.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audioinputenginemidi.cc b/src/audioinputenginemidi.cc
index 0714546..ce3ce18 100644
--- a/src/audioinputenginemidi.cc
+++ b/src/audioinputenginemidi.cc
@@ -125,7 +125,7 @@ void AudioInputEngineMidi::processNote(const std::uint8_t* midi_buffer,
break;
case NoteOn:
- if(instrument_idx != -1)
+ if(velocity != 0 && instrument_idx != -1)
{
// maps velocities to [.5/127, 126.5/127]
auto centered_velocity = (velocity-.5f)/127.0f;