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; }