Additional argument for zl lace?

Feb 23, 2009 at 1:40pm

Additional argument for zl lace?

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

#42467
Feb 23, 2009 at 5:40pm

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…

#151982
Feb 23, 2009 at 5:56pm

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

#151983

You must be logged in to reply to this topic.