title: Set the LED ring value of the Behringer X-Touch Mini encoders
body: <p>For DAW automation I want to use Behringers X-Touch Mini encoders (the knobs) to drive different behaviours depending on the state of the buttons below - i.e. if the first button is active then it should modify a channel's gain, if the second button is active it should modify a channel's send to reverb. I do have a easymidi node.js program in place to receive and send MIDI commands from/to the X-Touch (Standard Mode, according to the <a href="https://www.woodbrass.com/images/woodbrass/BEHRINGER+XTOUCH+MINI.PDF" rel="nofollow noreferrer">documentation</a>).</p>
  <p>To do so i need to switch the values that are displayed on an encoder depending on the buttons below. This is where I am facing a problem: It seems that the MIDI commands for <em>LED Ring Remote Control (Value Change)</em> do <strong>only affect the LEDs itself, not the internally stored value</strong> and become obsolete as soon as you turn the knob again.</p>
  <p>One example:</p>
  <ul>
  <li>turn the first encoder fully to the right - the last LED will light up - that will emit MIDI commands with 127 as value</li>
  <li>then set the LED of that encoder to the first LED using the MIDI command CC 9 with value 1 (first LED on)</li>
  <li>the first LED will light up</li>
  <li>then slightly turn the encoder knob to the left: the last LED will light up again and will send high values starting with 127</li>
  </ul>
  <p>For my intended application it is, therefore, not possible to switch the encoder from one parameter to another, because it would always keep its internal value, regardless of how i set the LEDs</p>
  <p>Any thoughts?</p>