If $ help please!
Hey everyone,
I'm currently working on a patch using the hi object, controlled by my PlayStation controller. I mapped the joysticks to control a cycle~ but want to program it so if the number output by the joystick is, for instance, greater than 0 but less than 25, then to output a frequency of 330.
What I have now is if $1 > 0 && $1 < 25 then $i330 else 0
Sorry if this doesn't make sense, very new to the program
Hi Sam,
Always look for your console errors, and then open the help / reference file for the objects you're having a hard time with. There you'll see examples of argument statements properly formatted. Unlike normal message boxes, in [expr] and [if] objects you always specify the argument TYPE as well as POSITION. So $i1 rather than $1, or $f3 instead of $3.
Probably what you meant to write above is: [$i1 > 0 && $i1 < 25 then 330 else 0]
Cheers
That did the trick! Thank you so much!