Additional argument for zl lace?

Roald Baudoux's icon

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's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

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

Emmanuel Jourdan's icon

You can even simplify by removing the zl len object.

Max Patch
Copy patch and select New From Clipboard in Max.

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