Routing numbers within a range
I want to alternate the function of a patch depending on the value of a number received. So in a really basic form: 0-10 picks from one set of options 11-20 another 21-30 another set again. I have looked at split, but that leaves the number in the box when it moves to the next range. When what I really want is for each box to become inactive (return to zero?) when I move onto the next range.
I have looked at the < & > operators, but it will only tell me what numbers are greater or smaller, not transmit the exact point in the range so I can have variables.
What's the most efficient way of doing this?
Many thanks
Try the "if" object with a gate. Send the number to all the if objects.
example.
if $i1
if $i1 > 10 || < 21 then 1 else 0 (range 11-20)
if $i1 >= 21 then 1 else 0(range 21-30)
Not behind the computer but I think this will get you on the right track.
Like this?
Nah Broc, I'd do it vastly differently:
;)
I think what I typically take away from it is to try to search for a solution in a *group* of objects, rather than in a single object.