Bi-Directional (LED Feedback) – Device Parameter Controls (Macro Controls)
I’ve been doing A LOT of forum/document surfing today and I’m still stuck – I’m wondering what I’m missing (maybe just some sleep).
Let’s say I have:
– A macro rack on track 1.
– Macro 1 mapped to an Endless Encoder (in absolute Mode)
– Macro one set to 50.
Then I move the session box over to track 2 – Macro 1 is mapped relative to the track position so will now control Macro 1/Track 2
Let’s say Track 2 Macro 1 is set to 127.
How do I get CSS to update the Macro value when the session box changes?
I am sure they key is in reactions but I have tried various options today but had no luck.
As a Listener in a Reaction you can use “Script > Session Box Position Has Changed”.
Your Action would then be to send a Parameter Value to the MIDI Controller.
You could use the Session Box Offset, this is the index number of the left most track inside your Session Box. This is the code —> self.get_sessbox_track_offset()
You can use this Session Box Offset code inside the brackets next to tracks in the line of code that retrieves the Parameter’s Value, like this:
self.song().tracks[self.get_sessbox_track_offset()].devices[0].parameters[0].value
If you want to get the value from another Track inside the session box, you can add to the Offset number. For example, say you want to get a Parameter Value from a Device on the 2nd Track inside the Session Box:
self.song().tracks[self.get_sessbox_track_offset()+1].devices[0].parameters[0].value
As you can see in “self.get_sessbox_track_offset()+1”, I just added 1 to the offset.
Now you can use this line of code that retrieves the Parameter Value to send this value to your MIDI Controller. You can find more Session Box related Values in the Conditions (values like the width of the session box or the last track or scene in the box). It’s under the “Script” menu. After you selected an option, you can copy its code (like I’ve done here with the Offset) and use it in your Action.
Sign up
User registration is currently not allowed.