summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVolker Fischer <corrados@users.noreply.github.com>2021-07-28 19:32:47 +0200
committerVolker Fischer <corrados@users.noreply.github.com>2021-07-28 19:32:47 +0200
commitd4d0011d3833d979b44f2116a628b10bb75b64a4 (patch)
treeabfe2945dc67aa1050588d9b3289e20c75d19cfc /src
parent61630a321ac59da01240a4b359c591e567aa84ed (diff)
parentd76db6f000844cac0afdff87e21abdf4ec009f07 (diff)
Merge remote-tracking branch 'origin/develop' into edrumulus
# Conflicts: # src/audioinputenginemidi.cc
Diffstat (limited to 'src')
-rw-r--r--src/audioinputenginemidi.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audioinputenginemidi.cc b/src/audioinputenginemidi.cc
index f6fedd6..00b6569 100644
--- a/src/audioinputenginemidi.cc
+++ b/src/audioinputenginemidi.cc
@@ -144,7 +144,7 @@ void AudioInputEngineMidi::processNote(const std::uint8_t* midi_buffer,
auto key = midi_buffer[1];
auto velocity = midi_buffer[2];
auto instrument_idx = mmap.lookup(key);
- if(velocity == 0 && instrument_idx != -1)
+ if(velocity > 0 && instrument_idx != -1)
{
events.push_back({ EventType::Choke, (std::size_t)instrument_idx,
offset, .0f, .0f });