I have a Behringer X-Touch Mini (MIDI Documentation) for which I want to control the LEDs.
The MIDI input is already working, but I want to send the correct LED messages to the controller. The MIDI controller is in MC Mode
(Mackie Control emulation mode).
What's the correct data I need to send so the LEDs change?
I've tried this:
ShortMessage myMsg = new ShortMessage();
try {
//command /channel /data1 /data2
myMsg.setMessage(8, 1, 27, 127);
} catch (InvalidMidiDataException e) {
e.printStackTrace();
}
long timeStamp = -1;
Receiver rcvr = null;
try {
rcvr = MidiSystem.getReceiver();
} catch (MidiUnavailableException e) {
e.printStackTrace();
}
rcvr.send(myMsg, timeStamp);
rcvr.close();