I am able to read and send SysEx commands to my digital mixer with PocketMIDI with a midi to usb cable. It really seems to work well. Now, I would like to read and send SysEx with my Arduino. I've tried these few simple commands to set a fader to 0db and then down to infinity and back over and over, with no success:
#include <MIDI.h>
byte onsysexArray[18] = {0xF0, 0x43, 0x10, 0x3E, 0x12, 0x01, 0x00, 0x33, 0x00, 0x00, 0x00, 0x37, 0x00, 0x00, 0x00, 0x06, 0x37, 0xF7};
byte offsysexArray[18] = {0xF0, 0x43, 0x10, 0x3E, 0x12, 0x01, 0x00, 0x33, 0x00, 0x00, 0x00, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF7};
MIDI_CREATE_DEFAULT_INSTANCE();
void setup() {
MIDI.begin();
}
void loop() {
MIDI.sendSysEx(18, onsysexArray, true);
delay(10000);
MIDI.sendSysEx(18, offsysexArray, true);
}
I'd also like to read the positiion of the fader. What am I missing? Thanks again for the help!