From 751f01eea8c40f70d412e691e6677d3daae54c7a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 25 Apr 2019 20:26:22 +0200 Subject: Do not discard midi messages bigger than 3 bytes. --- src/audioinputenginemidi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/audioinputenginemidi.cc b/src/audioinputenginemidi.cc index 7b8cbcb..abe00ff 100644 --- a/src/audioinputenginemidi.cc +++ b/src/audioinputenginemidi.cc @@ -109,7 +109,7 @@ void AudioInputEngineMidi::processNote(const std::uint8_t* midi_buffer, std::size_t offset, std::vector& events) { - if(midi_buffer_length != 3) + if(midi_buffer_length < 3) { return; } -- cgit v1.2.3