Hi,
do you already have added a MIDI out? o
Or do you want to use MIDI over USB?
It would be a big advantage if you could post your current code.
As a fast way to show how MIDI could work for you, here comes some pseudo-code:
Code:
#include <MIDI.h>
...
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);
#define MIDI_CHANNEL_OUT 1
...
setup()
{
...
MIDI.begin(MIDI_CHANNEL_OMNI);
}
loop()
{
MIDI.sendNoteOn(80, 100, MIDI_CHANNEL_OUT);
// wait some time befor sending a note-off
delay(1000); // very bad hack... better using elapsedMillis()
MIDI.sendNoteOff(80, 0, MIDI_CHANNEL_OUT);
delay(1000); // very bad hack... better using elapsedMillis()
}
HtH, Holger