🔥 Lifetime deal! Get Control Surface Studio for Just £67 👉 Click Here To Get It
Time left... mailtimers.com
⚠️ Lifetime licenses are ending soon, get yours before they're gone ⚠️
Your shopping cart is empty.

How set track selector relative to session box?

Submitted by navafive on Mon, 01/17/2022 - 02:05
navafive
Control Surface Studio User

Is possible to set track selector button relative to session box?
There's no controller input in Track Selector mapping

Topic Category: 

3 Responses

Comments

Wim
Control Surface Studio User
#1

Hello navfive,

I am not sure if I understand your question completely, but I have set up a reaction for following the highlighted track. I guess when you select a track it gets highlighted.
In this example, I have an 8 track Sessionbox and when I navigate to for example track 12, the Sessionbox follows so that track 12 will be the last one on my Sessionbox (so track 5 to 12 will be visible)

Listener is:
self.song().view.add_selected_track_listener -> (Live Object Model -> Song -> 'Selected Track' has changed)

Action is:
if self.get_selected_track_num()<7:
self.set_sessionbox_offsets(0, 0)
else:
self.set_sessionbox_offsets(self.get_selected_track_num()-7, 0)

Hope this is something that can help you get in the right direction.
Regards

davlar
Control Surface Studio User
#2

hi 303_, So do I just paste that code into the custom field of the Action box, or do I need to create two separate actions and paste the relevant code in each one with the appropriate condition ?

Wim
Control Surface Studio User
#3

Hi davlar,
Yes, you just paste that code into the custom field.
Adjust the number (here 7) to the number of tracks you have in your 'Session Box' minus 1! (I have an 8 track 'Session Box' so I have put 7 in my action)