Hi,
I am attempting to make a midi controller with 14 analog inputs and 11 digital outputs (LEDs).
In my void loop() I need usbMIDI.read(MIDIchannel); because I only want to receive midi messages on a specified channel to control the LEDs.
To create my code I altered some of the example code for analog inputs and at the bottom of the example I see this:
So I can't have both of these instructions for usbMIDI.read, and I can't ignore the incoming midi messages because I need them.
I read the link provided, which details midi messages piling up. If I am actually reading the incoming midi messages will the Midi messages still pile up and create a crash or delay in midi?
thank you.
Nick
I am attempting to make a midi controller with 14 analog inputs and 11 digital outputs (LEDs).
In my void loop() I need usbMIDI.read(MIDIchannel); because I only want to receive midi messages on a specified channel to control the LEDs.
To create my code I altered some of the example code for analog inputs and at the bottom of the example I see this:
Code:
void loop() {
// MIDI Controllers should discard incoming MIDI messages.
// http://forum.pjrc.com/threads/24179-Teensy-3-Ableton-Analog-CC-causes-midi-crash
while (usbMIDI.read()) {
// ignore incoming messages
}
}
So I can't have both of these instructions for usbMIDI.read, and I can't ignore the incoming midi messages because I need them.
I read the link provided, which details midi messages piling up. If I am actually reading the incoming midi messages will the Midi messages still pile up and create a crash or delay in midi?
thank you.
Nick