Forums > MaxMSP

Additional argument for zl lace?

February 23, 2009 | 1:40 pm

Hello,

Is there any argument for zl’s lace function? I ses nothing in the reference.

I’d like to interleave two lists on an uneven basis : the first list would be cut in pieces containing two items while the second list whould be cut in lists containing only one item.

lmerge allows one to achieve this but as I prefer not to use externals whenever possible, I’d like to know whether it’s possible with zl lace.

Roald Baudoux



Ch
February 23, 2009 | 5:40 pm

As far as I know there isnt.
However in your case you may build a workaround with a few zl like that for example :

– Pasted Max Patch, click to expand. –

Or you may use [zl nth] with uzi or something.
Anyway, I would really like to see zl lace and delace with arguments as well! But I would prefer that the argument gives the number of input lists (or output lists for delace), with 2 as the default. That would be really usefull to multiplex data…


February 23, 2009 | 5:56 pm

You can even simplify by removing the zl len object.

– Pasted Max Patch, click to expand. –

Having an argument to select the number of list to multiplex in zl is not going to happen anytime soon due to the nature of the object (it’s designed to have 2 inlets and 2 outlets. You can use mxj list.Multiplex and mxj list.Demultiplex for that purpose, it’s fast works for big lists and it’s included in the standard distribution.

Cheers,
ej


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