From 219797524d75054bf397fbecbd633128a306aff4 Mon Sep 17 00:00:00 2001 From: Francois Best Date: Sun, 3 Apr 2016 17:58:00 +0200 Subject: [PATCH] Fixed MIDI.read with input channel parameter. --- src/MIDI.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MIDI.hpp b/src/MIDI.hpp index ba6e6d0..c57cc2b 100644 --- a/src/MIDI.hpp +++ b/src/MIDI.hpp @@ -797,8 +797,8 @@ inline bool MidiInterface::inputFilter(Channel inChannel) if (mMessage.type >= NoteOff && mMessage.type <= PitchBend) { // Then we need to know if we listen to it - if ((mMessage.channel == mInputChannel) || - (mInputChannel == MIDI_CHANNEL_OMNI)) + if ((mMessage.channel == inChannel) || + (inChannel == MIDI_CHANNEL_OMNI)) { return true; }