General
Autoreset script with multiball
Started by del_boh on .
Sign in or create an account to join the conversation.
I am using this simple script to auto-reset faders to a default value when the fader is released:
on Expression x, any
if (z==0) x=(5/9);
This works well but if I use the same script to auto-reset the x co-ordinate of a multiball the value output to midi oscillates between the cursor value and the reset value defined in the script.
I am new to this software and, clearly, missing or misunderstanding something.
on Expression x, any
if (z==0) x=(5/9);
This works well but if I use the same script to auto-reset the x co-ordinate of a multiball the value output to midi oscillates between the cursor value and the reset value defined in the script.
I am new to this software and, clearly, missing or misunderstanding something.
I think the problem is your script is triggered by x on any change and the script changes x, which creates an infinite loop. Why don't you create a script with expression z, reaches zero? You'll only have to put x = (5/9); in the script and it's only triggered when you release your finger. Is faster and less error-prone.
Hope this helps!
Hope this helps!
Thank you! This is obvious now that you have pointed it out, even to a musician.