Fixed MIDI.read with input channel parameter.
This commit is contained in:
parent
fb693e7245
commit
219797524d
|
|
@ -797,8 +797,8 @@ inline bool MidiInterface<SerialPort, Settings>::inputFilter(Channel inChannel)
|
||||||
if (mMessage.type >= NoteOff && mMessage.type <= PitchBend)
|
if (mMessage.type >= NoteOff && mMessage.type <= PitchBend)
|
||||||
{
|
{
|
||||||
// Then we need to know if we listen to it
|
// Then we need to know if we listen to it
|
||||||
if ((mMessage.channel == mInputChannel) ||
|
if ((mMessage.channel == inChannel) ||
|
||||||
(mInputChannel == MIDI_CHANNEL_OMNI))
|
(inChannel == MIDI_CHANNEL_OMNI))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue