Need help rearranging a long list

Sep 14, 2013 at 8:17am

Need help rearranging a long list

so I have this somewhat ugly contraption:

<code>

– Pasted Max Patch, click to expand. –

</code>

- 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

#265282
Sep 14, 2013 at 9:30am

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

#265287
Sep 14, 2013 at 10:12am

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

#265288
Sep 14, 2013 at 11:20am

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.

#265290
Sep 14, 2013 at 2:01pm

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! :) )

#265295
Sep 15, 2013 at 3:16am

here’s how I would do it..

– Pasted Max Patch, click to expand. –
#265304
Sep 15, 2013 at 5:59pm

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…

#265347
Sep 16, 2013 at 3:00am

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.

#265368
Sep 16, 2013 at 6:02am

You can always make your own multiplexer.. :)

[matrixctrl] + [router]

– Pasted Max Patch, click to expand. –
#265388

You must be logged in to reply to this topic.