Forums > MaxMSP

looking for..

May 12, 2008 | 10:55 am

hi there, I


May 12, 2008 | 11:42 am

here is an example using a coll.
enjoy!

//yac

—————

#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P comment 197 449 42 196617 closer value;
#P window linecount 1;
#P comment 242 405 48 196617 distance;
#P message 347 61 67 196617 1.5 1.51 7.7;
#P message 191 59 31 196617 4.37;
#P newex 126 331 54 196617 unpack f f;
#P window setfont "Sans Serif" 20.;
#P message 126 446 69 196628 3.;
#P window setfont "Sans Serif" 9.;
#P newex 126 426 62 196617 prepend set;
#P message 170 405 69 196617 1.;
#P newex 170 385 62 196617 prepend set;
#P window linecount 3;
#P message 55 230 66 196617 sort -1 2 , renumber 1 , 1;
#P window linecount 1;
#P message 126 168 20 196617 $1;
#P newex 126 215 37 196617 abs 0.;
#N coll $0snap 1;
#P newobj 126 309 71 196617 coll $0snap 1;
#P message 126 286 69 196617 nsub $1 2 $2;
#P newex 126 257 45 196617 prepend;
#P newex 166 215 62 196617 prepend set;
#N coll $0snap 1;
#P newobj 126 144 71 196617 coll $0snap 1;
#P newex 283 164 29 196617 t b f;
#N counter;
#X flags 0 0;
#P newobj 283 192 66 196617 counter;
#P newex 283 221 55 196617 pack i f 0.;
#P newex 283 141 25 196617 iter;
#P newex 283 119 99 196617 t l 1 clear;
#P message 283 61 58 196617 3 5 7 9 11;
#P newex 126 191 27 196617 – 0.;
#N coll $0snap 1;
#P newobj 283 278 71 196617 coll $0snap 1;
#P message 174 59 14 196617 8;
#P message 157 59 14 196617 6;
#P message 140 59 14 196617 4;
#P message 122 59 14 196617 2;
#P newex 104 113 55 196617 t b dump f;
#P message 104 59 14 196617 1;
#P comment 118 22 146 196617 also works with floats;
#P connect 18 0 19 0;
#P connect 16 0 17 0;
#P connect 20 0 17 0;
#P connect 17 0 18 0;
#P connect 10 0 11 0;
#P connect 10 1 13 2;
#P connect 9 0 10 0;
#P connect 13 0 12 0;
#P connect 8 0 20 0;
#P connect 21 0 8 0;
#P connect 6 0 2 0;
#P connect 5 0 2 0;
#P connect 4 0 2 0;
#P connect 3 0 2 0;
#P connect 1 0 2 0;
#P connect 2 2 8 1;
#P fasten 2 0 22 0 109 180 60 180;
#P connect 23 0 24 0;
#P connect 25 0 26 0;
#P connect 27 0 25 0;
#P connect 27 1 23 0;
#P fasten 10 2 7 0 376 256 288 256;
#P connect 12 0 7 0;
#P connect 15 0 21 0;
#P connect 2 1 15 0;
#P connect 15 1 16 0;
#P connect 19 0 27 0;
#P fasten 22 0 19 0 60 306 131 306;
#P connect 29 0 10 0;
#P connect 14 1 12 1;
#P connect 14 0 13 0;
#P connect 11 0 14 0;
#P window clipboard copycount 32;


May 12, 2008 | 12:49 pm


May 13, 2008 | 9:28 am

many thanks, both solutions works very fine.

thx a lot!


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