Forum: Music discussion
script for chek...
Topic: script for chek var "?"
I have an idea so that I do not have to repeat the same code so many times when we use a question mark to verify a variable.
I have a pretty long script and I have to repeat the same code.
var 'test1' ? long script : set 'test1' 0.25 & long script : (long script identical to 'text1' 1)
My idea is to be able to do the following:
var 'test1' ? nothing : set 'test1' 0.25 ; long script
I explain, after verifying the variable, should continue with the long script, the difference is that first I would change 'test1' to 0.25 in the case of not being previously configured
Is it possible to do this in some way?
would it be very useful to close the "?" with a ";" to avoid repeating so much code
I think that the publication should not be published here, but I do not see anything about the scripts... sorry
Posted Thu 25 Apr 19 @ 8:58 am
one work around with limited application is
on pad 1 put; long script
in your actual script
var 'test' 1 ? pad 1 : set 'test1' 0.25 & pad 1
I suppose I could tweak builder to have extra effect_strings that don't clear onint, but that's only useful for personal use, it's no good for sharing padpages etc
Posted Thu 25 Apr 19 @ 9:46 am
talking about the builder
I would be better if "snap" button was the 10 button
I really need 9 strings :(
this would make you modify all your pads and that does not make much fun
Personally, I prefer you to take time for Builder for MAC
Posted Thu 25 Apr 19 @ 11:04 am