SteveBar
Well-known member
Hi All,
Does anyone have a link to or info on the Serial MIDI Driver support for MIDI real-time messages: Clk, Start, Stop, & Continue (F8, FA, FB, & FC). I can't seem to find a definitive answer, I thought I recall reading that this was fixed but could be confusing with the USB MIDI driver or the USB Host MIDI driver (BTW thx Paul for all this great code!).
I'm using library MIDI at version 4.3.1 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MIDI
It doesn't seem to handle real-time messages. I'm using an if statement and Serial.Write() to handle them now, but it make the code a little obtuse with a mix of Serial, USB and USB Host drivers.
Thanks,
Steve
Does anyone have a link to or info on the Serial MIDI Driver support for MIDI real-time messages: Clk, Start, Stop, & Continue (F8, FA, FB, & FC). I can't seem to find a definitive answer, I thought I recall reading that this was fixed but could be confusing with the USB MIDI driver or the USB Host MIDI driver (BTW thx Paul for all this great code!).
I'm using library MIDI at version 4.3.1 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MIDI
It doesn't seem to handle real-time messages. I'm using an if statement and Serial.Write() to handle them now, but it make the code a little obtuse with a mix of Serial, USB and USB Host drivers.
Thanks,
Steve
Code:
if ( (MsgType==0xF8)||(MsgType==0xFA)||(MsgType==0xFB)||(MsgType==0xFC) ) {
switch (i) { // Send single byte MIDI REAL-TIME MSG via SerialX.write
case 0: Serial1.write(MsgType); break;
case 1: Serial2.write(MsgType); break;
case 2: Serial3.write(MsgType); break;
case 3: Serial4.write(MsgType); break;
case 4: Serial5.write(MsgType); break;
// case 5: Serial6.write(MsgType); break; //issue here with Serial6
} // end switch
} // end if Real Time Msg