So I started making my remote script now finally, and I am running into a few things I can’t figure out.
Say in the case that I have 2 controls that are controlling the same thing.
For ease of explaining:
knob 1 controls Selected Track Volume
knob 2 also controls Selected Track Volume
If I turn knob 1 I only want to send midi to knob 2 to update its position on my controls, similarly if I turn knob 2 I want to send midi to knob 1.
I have events set up to handle changes:
"knob2.mSurfaceValue.mOnProcessValueChange = function (context, newValue) " etc…
However, a change in knob 2 will then fire both the event for knob 1 and knob 2, but they happen simultaneously, and they seem to be fired in the order the knobs were created. So I can’t tell which of knob1 or knob2 actually was physically turned.
Is there any means to figure this out? Can I somehow read which midi cc was sent from my controller?
In short, I want to create a behaviour where I only send midi to controls mapped to the same function, but not to the control that is physically moved.
Can I do this in a somewhat easy way?