Max object like [repack ] from zexy

Mitch Turner's icon

Does anyone know if there is an object in max that is like zexy's [repack] object. I've used it in Pd-Extended.

It basically takes a fixed number of separate atoms (coming in series) and binds them into a list.

What I'd like to do is this:

[midiin]
|
[repack 3]
|
[print]

and then I'd press and release Middle C and see two separate printed messages like:
144 60 100
144 60 0

In other words, [repack 3] says: take the next 3 atoms received and pack them into a list.

In [repack], the argument sets the number of incoming messages that are packed together into the list. So, [repack 4] would create 4 member lists, [repack 5], 5 member lists, etc...

Thanks,
Mitch

Ben Bracken's icon

zl group will probably do the trick:

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

kjg's icon

that would probably be [zl group 3]

Mitch Turner's icon

Thanks so much. Not sure why I did not see this myself. Oh well it works perfectly.
Mitch