Need help rearranging a long list
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
This past post might be applicable (i.e., tweakable) for your task.#206698
ah, cool - how does iterating huge lists like this fare in a real-time patch, I wonder.
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.
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! :) )
here's how I would do it..
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...
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.
You can always make your own multiplexer.. :)
[matrixctrl] + [router]