Forums > MaxMSP

doing group>slice without deferlow

January 28, 2009 | 7:56 pm

i’m sure there is a better way (without Lobjects) then this

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 300 91 43 9109513 deferlow;
#P newex 254 119 34 9109513 print a;
#P number 266 24 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 266 69 44 9109513 zl slice 1;
#P newex 266 45 48 9109513 zl group 3;
#B color 5;
#P fasten 0 0 3 0 271 67 259 67;
#P connect 0 0 1 0;
#P fasten 4 0 0 0 305 114 346 114 346 42 271 42;
#P connect 1 1 4 0;
#P connect 2 0 0 0;
#P window clipboard copycount 5;


January 28, 2009 | 8:42 pm

Try using [zl join] and [zl slice] instead.

lh

– Pasted Max Patch, click to expand. –


Ch
January 28, 2009 | 8:53 pm

>> i’m sure there is a better way (without Lobjects) then this

What does mean "Lobjects"? list object as zl? if so, here is a way without zl :

max v2;
#N vpatcher 40 104 640 504;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 196 266 50 196617 print b;
#P newex 196 240 91 196617 pack 0 0 0;
#P newex 196 211 50 196617 swap;
#P newex 196 187 50 196617 bucket 2;
#P number 196 133 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 1 1 2 1;
#P connect 2 1 3 1;
#P connect 0 0 3 2;
#P pop;


January 28, 2009 | 9:26 pm

Or an even easier way is to use [zl stream]. It does exactly what you want, but only available in Max5.

Zachary


January 28, 2009 | 11:12 pm


January 29, 2009 | 2:46 pm

On 29 janv. 09, at 00:12, Stefan Tiedje wrote:

>> Try using [zl join] and [zl slice] instead.
>
> If he would have Max 5, he could use a single [zl stream 3]
> instead…;-)

I’m a big fan of the zl stream mode too ;-) But there’s a difference
which is that [zl stream 3] only output the first list when it
received 3 values.

ej


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