diff --git a/src/mididevice.cpp b/src/mididevice.cpp index b5959bf..81314ba 100644 --- a/src/mididevice.cpp +++ b/src/mididevice.cpp @@ -207,6 +207,10 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign } } } + if (nLength == 3) + { + m_pUI->UIMIDICmdHandler (ucChannel, ucStatus & 0xF0, pMessage[1], pMessage[2]); + } break; case MIDI_NOTE_OFF: diff --git a/src/userinterface.cpp b/src/userinterface.cpp index 1c0716e..a2d78f1 100644 --- a/src/userinterface.cpp +++ b/src/userinterface.cpp @@ -388,13 +388,16 @@ void CUserInterface::UISetMIDIButtonChannel (unsigned uCh) if (uCh == 0) { m_nMIDIButtonCh = CMIDIDevice::Disabled; + LOGNOTE("MIDI Button channel not set"); } else if (uCh < CMIDIDevice::Channels) { m_nMIDIButtonCh = uCh - 1; + LOGNOTE("MIDI Button channel set to: %d", m_nMIDIButtonCh); } else { m_nMIDIButtonCh = CMIDIDevice::OmniMode; + LOGNOTE("MIDI Button channel set to: OMNI"); } } \ No newline at end of file