Sending encoder values from TD to device

Hello folks,

I’m building a sketch that uses a MIDI controller to change variables live. I’m using a MIDI In CHOP for that. The specific MIDI controller I’m using (Novation Launch Control XL 3) supports setting encoder values from MIDI in. I would like to create a “Reset” button which sets all my encoders to a specific value (64). I’ve been able to do that using an Execute DAT and a MIDI Out CHOP and I can see that my controller has picked up the correct value on the encoders.

My problem is that the MIDI In CHOP will still report the old values of the encoders. This means that even if I set my controller encoders to 64, MIDI In will still show the old value and will immediately jump to 63 or 65 as soon as I move my encoders. As a consequence, resetting encoder values on my controller will not reset variables to their middle value.

Does anyone have any ideas how to get my desired behavior?

One way I’ve come up with is:

  1. Pipe the MIDI In CHOP into a Math CHOP, Multiply by 0 and add 64
  2. Combine the MIDI In CHOP and the Math CHOP into an Override CHOP ← the most recent value will win
  3. When I press the “Reset” button:
    1. Send “64” to all encoders ← Encoders move to 64
    2. Jiggle the Math CHOP values by 0.001, enough to replace MIDI values in Override ← the values in Math are now the most recent and will make it through Override
  4. When I move any encoder, MIDI In will immediately jump to 63 or 65 ← this value is now the most recent and will make it through Override

While it works, it feels a bit clunky. Anyone have a better idea?

Thank you!

Hi @odaymansour,

is there a setting in the Novation Controller App to allow for Midi Feedback on controls?
Often times this is a separate feature that has to be turned on for controllers.

In case the Novation does not support a feedback mode, my advice would be using the Bind CHOP with multiple inputs coming from the Midi Device itself and the overrides you are sending out.
The Bind CHOP’s “bind multi-CHOP inputs” example in the OP Snippets shows a practical approach.

Hope this helps
cheers
Markus

Hi Marcus, thanks for the suggestion, I do appreciate it.

The controller doesn’t seem to have a feature for MIDI feedback when setting a value. I just tried using Bind and it looks similar in complexity to what I have going on with the Overrides. I’m stuck on the fact that I need to swipe past the current bound value to take over control.

I’ll stick to Override as I’m not familiar with Binding yet, but I’ll play with Binds for a bit as it seems to be useful.