🔥 Lifetime deal! Get Control Surface Studio for Just £67 👉 Click Here To Get It
Time left... mailtimers.com
⚠️ Lifetime licenses are ending soon, get yours before they're gone ⚠️
Your shopping cart is empty.

Reactions and momentary buttons

Submitted by mauronedj on Thu, 11/18/2021 - 13:01
mauronedj
Control Surface Studio User

Hi guys,
I noticed that if I set the reactions to start when a midi note is pressed, then it double triggers, one time when it receives midi on and another time when receiving midi off.
I solved this problem with velocity for now, but is there any way to do that in a more elegant manner?
Thanks,
Mauro.

Topic Category: 

3 Responses

Comments

JohnC
Forum Admin
#1

Add a condition into your action block which checks that the velocity value of the button is equal to something i.e. 127
With a condition in place, it means the contents of the action will only process if the condition is met.

So in this case, only if the velocity of the button is currently 127, meaning when you release the button and it sends a velocity of 0, the condition will not be met and the action will not process... which is essentially momentary..

mauronedj
Control Surface Studio User
#2

Thanks John,
What I did is I used the first action block to check if the velocity is equal to zero and in that case exit the reaction.
Thanks for the suggestion!

JohnC
Forum Admin
#3

Yes that works too :)