Hey guys,
I'm pretty lucky with using the Midi Library and I want to use it further. I'm looking after a simple how-to about sending sysex with the midi library, in order to control an old synth by different events like incoming CC-Values into the arduino.
Lets say the sysex message has to be like this (14 bits), where XX is the value:
F0 43 10 26 02 06 01 00 1F 01 78 00 XX F7
How to write the code properly while it should be controlled by Midi CC 3:
#include <MIDI.h>
void setup() {
MIDI.begin();
}
void loop() {
if (MIDI.getType() == midi::ControlChange && MIDI.getData1() == 3) { // only responds to values from Midi CC 3
MIDI.sendSysEx(14, F0 43 10 26 02 06 01 00 1F 01 78 00 HEXVALUEFROMMIDICC3 F7); //this is crap
}
}
Any ideas? Thanks!!