what number to use in reactor set active mode
I am trying to set the active mode based on the track name. I have a reactor that responds to a change in track name, and it can set the active mode, but the function to set the active mode only takes a number. I have not found an easy way to discover the number associated with a given mode. Is there a way to see the mapping? Or even better, a command to get the number based on the mode name?
using css :Version 3.0.1
update : I found a post by JohnC on June 12, 2025 that seems to have helped me
in that post, the answer was:
……………………………….
The number should match the order they are listed in, in the modes section (excluding the global mode) and they count from zero rather than 1.
So the first mode in the list would be [0], the second [1] and so on.
……………………………….
In my script, I found that the “number” to use did start with [1] – the first three modes selected as intended when I used 1, 2 or 3. It appears that “internally” the numbers start with zero, but in the script they start with one. In the status line you see the code generated will show the number you enter less one. It does indeed go by the order of the modes as shown in CSS – so if you insert one or re-arrange, the script will break. Probably best to include the mode number in the mode name and keep them in the correct order.
Sample script attached – I used three plugins as an example; if the track name isn’t one of the three defined, then it sets the mode to one called default. I couldn’t find a way to set it to the global mode, so I defined my own default.
In the past, I had a separate script for every plugin I wanted to map – so I had to manually change the Ableton preferences to change plugins. This may give me a way to have a “master” script that dynamically maps based on the plugin selected – that would be really great if it works out.
BTW – the controller I use normally with CSS is the Midi Fighter Twister, which is great. I got a new device called the Timepod – it was a kickstarter product. It has 8 banks of 16 endless encoders, and for each bank, you have 8 “snapshots” of values you can store. Very promising. Alas, encoders only, no buttons. They say they will release it as a commercial product sometime in the future. Seems to work well with CSS
Sign up
User registration is currently not allowed.