XML Feeds

.

[maxmsp] Re: Output of an if statement

justin justin at lowtech.org
Mon Jul 2 07:38:24 MDT 2007


yes, $f1 (float variable) as opposed to $i1 (integer variable).
also be careful of the order of messages, you may need to calculate  before you send to the if object...

j

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 206 230 36 196617 t f f b;
#P flonum 334 326 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 219 303 27 196617 / 1.;
#P flonum 270 283 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 206 209 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 206 374 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 270 265 21 196617 44.;
#P newex 206 345 138 196617 if $f1 < $f2 then $f3 else 1.;
#P user hslider 340 165 18 128 128 1 0 0;
#P fasten 5 0 6 1 275 300 241 300;
#P connect 5 0 1 1;
#P connect 8 2 2 0;
#P connect 8 1 6 0;
#P connect 8 0 1 0;
#P connect 4 0 8 0;
#P connect 7 0 1 2;
#P connect 1 0 3 0;
#P fasten 6 0 7 0 224 324 339 324;
#P connect 2 0 5 0;
#P connect 0 0 4 0;
#P window clipboard copycount 9;



More information about the maxmsp mailing list