Forums > MaxMSP

zl-nth like index list

October 9, 2006 | 8:10 am

Dear all, i’m missing an object that does something like "zl nth" but with a list of indexes…
thanks



jml
October 9, 2006 | 6:42 pm

listfunnel might help…


October 11, 2006 | 10:28 am

mic wrote:
> Dear all, i need to know if there is an object that does something
> like "zl nth" but with a list of indexes… thanks

Something like this?

Stefan

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 198 120 27 196617 2 9;
#P message 55 77 50 196617 yeah but;
#P message 39 56 140 196617 hello this is a nths abhaXion;
#P message 68 99 104 196617 9 8 7 6 5 4 3 2 1;
#P message 68 195 195 196617 8 1;
#P newex 68 172 62 196617 prepend set;
#P message 145 120 42 196617 1 3 6 7;
#N vpatcher 294 253 620 520;
#P window setfont "Sans Serif" 9.;
#P number 132 127 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 60 151 66 196617 zl group 256;
#P newex 50 50 61 196617 t b b l b;
#P newex 125 78 36 196617 zl reg;
#P newex 97 78 26 196617 uzi;
#P newex 113 50 34 196617 zl len;
#P newex 97 104 45 196617 zl queue;
#P newex 60 104 34 196617 zl reg;
#P newex 60 126 47 196617 zl nth;
#P inlet 113 27 15 0;
#P inlet 50 27 15 0;
#P outlet 60 173 15 0;
#P connect 1 0 9 0;
#P fasten 7 0 4 0 102 99 65 99;
#P connect 4 0 3 0;
#P connect 3 0 10 0;
#P fasten 9 0 10 0 55 147 65 147;
#P connect 10 0 0 0;
#P connect 9 2 4 1;
#P fasten 9 1 7 0 72 74 102 74;
#P connect 8 0 5 0;
#P connect 7 0 5 0;
#P connect 5 0 3 1;
#P connect 2 0 6 0;
#P connect 6 0 7 1;
#P fasten 9 3 8 0 106 71 130 71;
#P connect 5 1 11 0;
#P fasten 2 0 8 1 118 46 156 46;
#P pop;
#P newobj 68 146 87 196617 p nths;
#P connect 7 0 0 1;
#P connect 6 0 0 0;
#P connect 5 0 0 0;
#P connect 4 0 0 0;
#P connect 0 0 2 0;
#P connect 2 0 3 0;
#P connect 1 0 0 1;
#P window clipboard copycount 8;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


October 11, 2006 | 5:55 pm

Thanks!



jln
October 12, 2006 | 9:31 am



jln
October 12, 2006 | 10:14 am

mm… I thought that attachments were working, weren’t they ? It
seems it didn’t. Or I probably missed something…

Anyway, here are the patchs :

***save as jln.nths.pat for example***

#P window setfont "Sans Serif" 9.;
#P window linecount 8;
#P comment 377 136 100 196617 attribute : @update 1 = left inlet
triggers output , @update 2 right inlet triggers output , @update 3
= both inputs trigger output.;
#P window linecount 3;
#P comment 377 96 100 196617 works as [zl nth] but with multi
elements to get;
#P outlet 249 470 15 0;
#P window linecount 1;
#P newex 90 60 66 196617 route update;
#P newex 27 35 73 196617 patcherargs 1;
#P newex 153 144 27 196617 t b l;
#P newex 311 125 40 196617 gate 3;
#N comlet (l , i) items’ position to get (0 … list len);
#P inlet 341 24 15 0;
#P newex 285 198 36 196617 zl reg;
#P newex 153 97 40 196617 gate 3;
#N comlet (l) list input;
#P inlet 183 24 15 0;
#P newex 178 322 36 196617 zl reg;
#P newex 249 429 46 196617 zl group;
#P button 178 294 15 0;
#P newex 206 368 35 196617 zl nth;
#P newex 285 270 34 196617 zl len;
#P newex 231 270 47 196617 zl iter 1;
#P connect 9 0 10 1;
#P connect 10 0 8 1;
#P fasten 13 0 10 0 95 86 316 86;
#P fasten 12 0 7 0 32 94 158 94;
#P fasten 12 0 10 0 32 94 316 94;
#P connect 1 0 4 1;
#P connect 8 0 0 0;
#P connect 8 0 1 0;
#P fasten 11 0 8 0 158 189 290 189;
#P lcolor 5;
#P connect 10 2 8 0;
#P fasten 10 1 8 0 331 149 290 149;
#P lcolor 5;
#P connect 4 0 14 0;
#P connect 2 0 4 0;
#P fasten 0 0 3 0 236 290 183 290;
#P connect 0 0 2 1;
#P connect 5 0 2 0;
#P fasten 11 1 5 1 175 232 209 232;
#P lcolor 7;
#P fasten 7 1 5 1 173 232 209 232;
#P lcolor 7;
#P connect 6 0 7 1;
#P connect 3 0 5 0;
#P connect 7 2 11 0;
#P connect 7 0 11 0;
#P fasten 13 0 7 0 95 86 158 86;
#P connect 12 1 13 0;
#P window clipboard copycount 17;

***then save as jln.nths.help***

#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P comment 331 211 100 196617 both inlets trigger output;
#P comment 222 212 100 196617 right inlet triggers output;
#P button 408 160 15 0;
#P button 293 160 15 0;
#P button 183 160 15 0;
#P window linecount 1;
#P message 331 187 50 196617 b d f h;
#P newex 331 160 62 196617 prepend set;
#P message 225 187 50 196617 l n p r;
#P newex 225 160 62 196617 prepend set;
#P message 119 187 50 196617 b d f h;
#P newex 119 160 62 196617 prepend set;
#P message 416 45 52 196617 1 3 5 7 9;
#P message 310 45 43 196617 2 4 6 8;
#P message 225 45 83 196617 a b c d e f g h i j;
#P message 119 45 87 196617 k l m n o p q r s t;
#P newex 331 132 95 196617 jln.nths @update 3;
#P newex 225 132 95 196617 jln.nths @update 2;
#P newex 119 132 95 196617 jln.nths @update 1;
#P window linecount 2;
#P comment 115 211 100 196617 left inlet triggers output;
#P connect 4 0 1 0;
#P connect 5 0 1 0;
#P connect 1 0 8 0;
#P fasten 8 0 9 0 124 182 124 182;
#P fasten 1 0 14 0 124 154 188 154;
#P connect 7 0 1 1;
#P connect 6 0 1 1;
#P connect 4 0 2 0;
#P connect 5 0 2 0;
#P connect 2 0 10 0;
#P fasten 10 0 11 0 230 183 230 183;
#P fasten 2 0 15 0 230 154 298 154;
#P connect 7 0 2 1;
#P connect 6 0 2 1;
#P connect 4 0 3 0;
#P connect 5 0 3 0;
#P connect 3 0 12 0;
#P fasten 12 0 13 0 336 183 336 183;
#P fasten 3 0 16 0 336 154 413 154;
#P connect 7 0 3 1;
#P connect 6 0 3 1;
#P window clipboard copycount 19;

Best,

Julien.


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