#define MIDI_CHANNEL 1 #include #include #include void setup() { // We initialise the sound engine by calling Music.init() which outputs a tone Music.init(); // These guys just have to be here... usbMIDI.setHandleNoteOff(OnNoteOff); usbMIDI.setHandleNoteOn(OnNoteOn); usbMIDI.setHandleControlChange(OnControlChange); // Loading a preset from EEPROM Music.getPreset(19); } void loop() { // Checking for incoming MIDI to use dashboard usbMIDI.read(); }