I would like to create mute groups. Example: Toggle button mutes 4 tracks instead of just one. Is there a simple way to do this?
Hi @VtruV , you can implement this using a Lua function.
When you create a button in the preset editor and click it, in the properties list on the left of the editor you will see a field “FUNCTION”. If you enter a name you choose (for example, muteTracks), and press the + button, that function will be created in the Lua editor. Set the type of the button control to Virtual.
By then clicking “Lua and tools” in the top toolbar, you can find the function.
If you already have a mute button for each track in your editor, you could toggle those buttons using some Lua code in the new function.
You can change the value of a control (such as your mute buttons) by using this call: parameterMap.set(deviceId, parameterType, parameterNumber, midiValue)
. DeviceID is most likely 1, for parameter type check what you already use in the mute button. See more about how to use this function here: Preset Lua extension | Electra One Documentation
To toggle all mutes, in your function you would call this for each button.
Thanks @christianvogel , I’ll give that a try today.