mapping to macro variations in audio effect rack

352 viewsCSS Questionsbutton mapping
1

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?

Drew Answered question
1

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

Wim Posted new comment

There was a slight error in your code example. I’ve updated it 🙂

Very cool, I missed that, thanks for letting us know Dieter!

You are viewing 1 out of 4 answers, click here to view all answers.