joshnishikawa/MIDIcontroller

need usbmidi.read() to avoid usb stack crashes

Closed this issue · 1 comments

// http://forum.pjrc.com/threads/24179-Teensy-3-Ableton-Analog-CC-causes-midi-crash
void MIDI_loop(void){
// MIDI Controllers should discard incoming MIDI messages.
while (usbMIDI.read()) { }
while (MIDI1.read()) { }
// Note : if you wanted to do any forwarding of incoming MIDI messages, add that here...
}

see my fork for fixes...
https://github.com/PatternAgents/MIDIcontroller

cheers,
Tom

Thank you! All examples have been updated.