title: Changing LEDs on X-Touch Mini – Mackie Control (MC Mode)
body: <p>I have a Behringer X-Touch Mini <a href="https://media.music-group.com/media/PLM/data/docs/P0B3M/X-TOUCH%20MINI_QSG_WW.pdf" rel="nofollow noreferrer">(MIDI Documentation)</a> for which I want to control the LEDs.</p>
  
  <p>The MIDI input is already working, but I want to send the correct LED messages to the controller. The MIDI controller is in <code>MC Mode</code> (Mackie Control emulation mode).</p>
  
  <p>What's the correct data I need to send so the LEDs change?</p>
  
  <p>I've tried this:</p>
  
  <pre><code>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();
  </code></pre>