You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been mainly working with the Arduino MIDI Library using DIN MIDI and now starting to explore USB. I am curious if this while loop usage is Teensy specific or is it good practice in general or only when coding for MIDI controllers? I believe this prevents USB buffers from filling up with incoming MIDI messages? Thanks for any insights and advice.
while (MIDI_USB.read()) {
// ignore incoming messages
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been mainly working with the Arduino MIDI Library using DIN MIDI and now starting to explore USB. I am curious if this
while
loop usage is Teensy specific or is it good practice in general or only when coding for MIDI controllers? I believe this prevents USB buffers from filling up with incoming MIDI messages? Thanks for any insights and advice.https://github.com/PaulStoffregen/Teensyduino_Examples/blob/master/USB_MIDI/MIDI_name/MIDI_name.ino
Beta Was this translation helpful? Give feedback.
All reactions