Move access to usbMIDI to midi.ino
NuEVI.ino shouldn’t have to know about usbMIDI.
This commit is contained in:
parent
921fdb1266
commit
cc3323fd03
3 changed files with 10 additions and 4 deletions
|
@ -849,9 +849,8 @@ void loop() {
|
|||
analogWrite(dacPin,breathCurve(map(constrain(pressureSensor,breathThrVal,breathMaxVal),breathThrVal,breathMaxVal,0,4095)));
|
||||
#endif
|
||||
|
||||
while (usbMIDI.read()) {
|
||||
// read & ignore incoming messages
|
||||
}
|
||||
midiDiscardInput();
|
||||
|
||||
//do menu stuff
|
||||
menu();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue