XML Feeds

.

[maxmsp] Re: recall index from any data

lorbi lorbi at es-crew.net
Sat Dec 1 16:11:51 MST 2007


this is not hard to fix

max v2;
#N vpatcher 113 44 1186 787;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 126 103 33 196617 break;
#P window setfont "Sans Serif" 20.;
#P newex 399 382 173 196628 sel NOT_IN_LIST;
#P message 399 450 63 196628 0 0 0;
#P message 254 450 141 196628 255 255 255;
#P newex 254 489 137 196628 unpack 0 0 0;
#P window setfont "Sans Serif" 9.;
#P newex 254 542 141 196617 bgcolor 255 255 255;
#P window setfont "Sans Serif" 20.;
#P comment 248 571 159 196628 index of the list;
#P newex 66 230 90 196628 route int;
#P objectname u331000001[2];
#P newex 164 272 41 196628 iter;
#P newex 98 418 57 196628 t b 0;
#P number 176 571 68 20 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 176 453 53 196628 gate;
#P newex 393 132 133 196628 t b i 1 length;
#P objectname u331000001[1];
#P number 393 56 68 20 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 164 312 70 196628 sel;
#P newex 164 176 120 196628 uzi;
#N coll try;
#P newobj 164 232 75 196628 coll try;
#P objectname u331000001;
#P comment 478 58 220 196628 number u r looking for;
#P window setfont "Sans Serif" 36.;
#P comment 677 300 285 196644 NOT IN LIST!!!!!!;
#B frgb 255 255 255;
#P connect 2 0 11 0;
#P connect 4 0 9 0;
#P fasten 4 0 18 0 169 353 61 353 61 94 131 94;
#P connect 18 0 3 0;
#P fasten 6 0 3 0 169 164;
#P fasten 6 3 2 0 521 215 169 215;
#P fasten 3 2 2 0 279 220 169 220;
#P connect 2 0 10 0;
#P connect 10 0 4 0;
#P connect 9 1 7 0;
#P fasten 6 2 7 0 480 436 181 436;
#P connect 7 0 8 0;
#P connect 2 1 7 1;
#P fasten 6 1 4 1 439 280 229 280;
#P connect 9 0 15 0;
#P connect 15 0 14 0;
#P fasten 16 0 14 0 404 485 259 485;
#P connect 14 0 13 0;
#P connect 11 0 3 1;
#P connect 14 1 13 1;
#P connect 14 2 13 2;
#P connect 5 0 6 0;
#P connect 4 1 17 0;
#P connect 17 0 16 0;
#P pop;

but you need to download another coll "try2".

This can be a solution but if you are working a lot with lists i agree totally with jean-Michel Darrémont.
lisp is your solution.

best

L






Quote: Kyred wrote on Sat, 01 December 2007 23:37
----------------------------------------------------
> Thanks lorbi,
> it is interesting, but if I send it a number's not stored in the coll, it gives me 5. How to avoid it ?
> I'd prefer nothing if a number is not held in the coll, at least not an existing index !
----------------------------------------------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: try2
Type: application/octet-stream
Size: 156 bytes
Desc: not available
Url : http://www.cycling74.com/pipermail/maxmsp/attachments/20071202/43fcfabb/try2.obj


More information about the maxmsp mailing list