doing group>slice without deferlow

Jan 28, 2009 at 7:56pm

doing group>slice without deferlow

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;

#41982
Jan 28, 2009 at 8:42pm

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

lh

– Pasted Max Patch, click to expand. –
#149938
Jan 28, 2009 at 8:53pm

>> 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;

#149939
Jan 28, 2009 at 9:26pm

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

Zachary

#149940
Jan 28, 2009 at 11:12pm

#149941
Jan 29, 2009 at 2:46pm

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

#149942

You must be logged in to reply to this topic.