Need help rearranging a long list

Wetterberg's icon
Max Patch
Copy patch and select New From Clipboard in Max.

so I have this somewhat ugly contraption:

- it's designed to slice a 256-member basically into 8 32-step elements, but in a type of interlaced fashion.

I guess what I'd kill for is a "zl lace" process that allowed me to set the laces, so to speak.

Does this exist?
cheers

Christopher Dobrian's icon

This past post might be applicable (i.e., tweakable) for your task.#206698

Wetterberg's icon

ah, cool - how does iterating huge lists like this fare in a real-time patch, I wonder.

Christopher Dobrian's icon

One way to find out... :)

I wouldn't suggest displaying the result in a message box as I did in that example. But the rest of the operations should be fairly economical, I'd think. And if you know the length of your lists in advance, you can dispense with the zl len object.

Wetterberg's icon

yeah, I reckon it's worth a hack, hehe.

(I only just figured out @outsize on unjoin - I think there's still a lot of black box things to discover in Max, many years into it. It's good, keeps us on our toes! :) )

metamax's icon

here's how I would do it..

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

Peter McCulloch's icon

There's Mxj list.multiplex. (And its counterpart list.Demultiplex)

It has variable numbers of inputs. Wish we had a full fledged C implementation of these objects...

Wetterberg's icon

Thanks for your version, too Metamax
@Peter, yeah I've been playing around with list.multiplex and list.demultiplex since yesterday, but I can't really get it to do the above list conversion - I can set the *amount* of "laces", but if I do list.demultiplex 2 I still get alternating selections only 1 member wide, etc.

metamax's icon

You can always make your own multiplexer.. :)

[matrixctrl] + [router]

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