mapping to macro variations in audio effect rack
Apologies if this has been asked and answered many times. I’m new to CSS and am struggling to map a button to a macro variation in Live 12’s Audio Effect Racks. How do I find out what the parameter numbers are for the macro variations?
Actual LOM lists in a “Rack Device” properties for variations:
variation_count int read-only observe
The number of currently stored macro variations.
Available since Live 11.0.
selected_variation_index int
Get/set the currently selected variation.
Available since Live 11.0.
and functions:
store_variation
Stores a new variation of the values of all currently mapped macros.
Available since Live 11.0.
recall_selected_variation
Recalls the currently selected macro variation.
Available since Live 11.0.
recall_last_used_variation
Recalls the macro variation that was recalled most recently.
Available since Live 11.0.
delete_selected_variation
Deletes the currently selected macro variation. Does nothing if there is no selected variation.
Available since Live 11.0.
So within a reaction you should have access to variations, e.g. set the variation index by:
self.song().view.selected_track.view.selected_device.selected_variation_index = 7
or get the index by
var_int = self.song().view.selected_track.view.selected_device.selected_variation_index
I haven´t tried it myself. Good luck.
Dieter
Very cool, I missed that, thanks for letting us know Dieter!
Sign up
User registration is currently not allowed.
There was a slight error in your code example. I’ve updated it 🙂