In the arduino IDE I wrote a patch for Daisy Seed in which I set some midi call backs in the setup() routine:
MIDI.setHandleNoteOn(handleNoteOn); MIDI.setHandleNoteOff(handleNoteOff); MIDI.setHandleControlChange(handleControlChange); MIDI.begin(MIDI_CHANNEL_OMNI);
For test purposes in handleMidiOn() I switch on an LED which I switch off in handleNoteOff(). As soon as I start sending midi notes to the Daisy, the led starts to flash according to the notes I send. Nice!
However, when I add a callback for audio processing to setup(),
the midi notes are not processed anymore, or at least I do not see the LEDs flashing (the audio is processed though). Is this to be expected or do I have to handle the MIDI.begin and DAISY.begin differently?
If I change the sequence of commands, so start the audio callback before the midi callback, then only the audio callback is running. Do I need to chain them in some sort of way?