Drum Rack (Mute/Unmute) – Button toggle

359 viewsCSS Questions
0

Hello ! I’m tweaking a novation launch control & i’m a little lost for a simple thing on a drum rack.

First i was happy to do a led feedback for a mute/unmute drum rack pad.
On the same button i would like to do a simple “mute” toggle button.

I tested with reaction :

1-When button x is pressed
2-Condition : Only continue if Drum Pad mute (bool) is equal to false
3-Then, Drum Pad set mute True.

Ok, it works on one function.

But i don’t know how to do to have both condition/toggle for mute & unmute (because if i make a second reaction with inverted settings, i’m stuck in a “mute/unmute” loop.

It’s a stupid question i know, it’s just i don’t know where to search the solution. (maybe on “get value from ranges” or not ?)

Thanks a lot ! (and next step if i can…make drum note feedback on the button 😉 )

admin Changed status to publish May 22, 2024
Attached Files:
0

Hello ! Any tips about this please ?

admin Changed status to publish May 22, 2024
Attached Files:
0

If I get this right you may get into a loop as you may not have put an exit action to your action block.
Basically what you do is this

>listener (ie button 1) when button 1 is pressed do this:

then you have two blocks one for muting and one for unmuting

> block 1: if pad is mute >> then unmute
> exit reaction (you will find this in the script menu)

block 2: if pad is not muted >> then mute it
(you don;t neet to use exit here as it’s the end of the reaction anywy)

the exit reaction on the firstblock will preevnt you from having the loop you are talking about 🙂

admin Changed status to publish May 22, 2024
Attached Files:
0

that works great for toggle buttons.
but what is i have momentary buttons on my controller?
how to do that?

admin Changed status to publish May 22, 2024
Attached Files:
0

When you have a momentary button, it will register your button press and release as 2 separate events. What you can do to prevent the button release from activating the reactions is to make the first action block exit the reaction on the condition that the current velocity of your button is 0. If you do that, only button presses, which produce a velocity of 127, will go through to the other actions in your Reaction.

admin Changed status to publish May 22, 2024
Attached Files:
0

have tried that yesterday – but that was working awkward …

admin Changed status to publish May 22, 2024
Attached Files: