Autoreset script with multiball

Discuss Lemur and share techniques.
Post Reply
del_boh
Newbie
Posts: 3
Joined: 25 Sep 2016 13:11

Autoreset script with multiball

Post by del_boh »

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.
MrCorba
Regular
Posts: 142
Joined: 02 Sep 2013 20:17
Location: Netherlands

Re: Autoreset script with multiball

Post by MrCorba »

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!
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
del_boh
Newbie
Posts: 3
Joined: 25 Sep 2016 13:11

Re: Autoreset script with multiball

Post by del_boh »

Thank you! This is obvious now that you have pointed it out, even to a musician.
Post Reply