Hello,
Been having some trouble getting realtime Midi messages (clock, stop, start etc) from USB Midi working as expected.
Basically my code was looking for what channel a Midi Message is sent on. I use usbMidi.read followed by usbMidi.getChannel() to check for a realtime message like clock, start, or stop, and I was expecting it to return '0' for any non channel message like start, stop, clock etc, as per the way that the standard MIDI library works.
Unfortunately if a realtime message is received to usbMidi and I use usbMidi.read() followed by usbMidi.getChannel(), it doesn't return '0' but returns '9' instead.
I'm gonna look into this some more, but if anyone could help or confirm this that would be great!
TIA
Edit:
Looks like:
clock messages are received on channel 9
start messages are received on channel 11
stop messages are received on channel 13
??
Been having some trouble getting realtime Midi messages (clock, stop, start etc) from USB Midi working as expected.
Basically my code was looking for what channel a Midi Message is sent on. I use usbMidi.read followed by usbMidi.getChannel() to check for a realtime message like clock, start, or stop, and I was expecting it to return '0' for any non channel message like start, stop, clock etc, as per the way that the standard MIDI library works.
Unfortunately if a realtime message is received to usbMidi and I use usbMidi.read() followed by usbMidi.getChannel(), it doesn't return '0' but returns '9' instead.
I'm gonna look into this some more, but if anyone could help or confirm this that would be great!
TIA
Edit:
Looks like:
clock messages are received on channel 9
start messages are received on channel 11
stop messages are received on channel 13
??
Last edited: