joshnishikawa / MIDIcontroller

A library for creating Teensy MIDI controllers with support for hold or latch buttons, potentiometers, encoders, capacitive sensors, Piezo transducers and other velocity sensitive inputs with aftertouch.
223 stars 19 forks source link

need usbmidi.read() to avoid usb stack crashes #2

Closed moxondesign closed 4 years ago

moxondesign commented 5 years ago

// 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

joshnishikawa commented 4 years ago

Thank you! All examples have been updated.