Forums > MaxMSP

problems debugging large if statement; grab/coll as a solution

May 23, 2011 | 3:03 pm

hello everyone

Hope it’s all fine with you guys.. I am trying to get 16 states from a bi-dimensional axis, by dividing the coordinates into zones with if statements (one of x, other for y), and then analysing the list of x y.. I am doing it with if statement, and I am experiencing some problems because its not working properly.. I’ve been suggested by a friend to use coll+grab.. but I am not being able to put this working properly.. If you can help me debugging the largest if statement/debugging coll+grab, it would be a handsome help..

thanks in advance
have a nice weekend
tiago

– Pasted Max Patch, click to expand. –

May 23, 2011 | 3:17 pm

Too lasy to carefully check your huge (and ugly) if statement, but the following patch may do more or less what you want, or should be easy to adapt to suits your needs :

– Pasted Max Patch, click to expand. –

May 23, 2011 | 5:49 pm

[if] can give you not more than 3 states, if then, if else, or no output.

for 16 states try something else.

is that for jitter stuff or only a for a GUI/mouse job?

if it is for mouse input, then i would just do 16 parallel checks for "if it is
inside a certain rect" … or whatever has to be checked.

-110


Viewing 3 posts - 1 through 3 (of 3 total)