Forums > MaxMSP

Max/MSP Coll Data separation

Dec 15 2011 | 1:13 pm

Hi there,

A seemingly simple one this but I just can’t seem to get it working correctly after trying for a while. Basically, I have a [coll] object that stores 10 different values on increasing size against 10 index integers, for example:

0, 33
1, 87
2, 400 etc (all the way to 9, 2223)

I want to be able to route the values from coll into 10 separate integer boxes for further calculations in the patch. I have tried unpacking, routing, separating and can’t seem to figure it out.

Any help would be hugely appreciated, along with a brief explanation – I expect it is just one object that I am misplacing or misusing.

Thanks in advance,


Dec 15 2011 | 1:26 pm

If you just want to route the coll according to storage slot you have two options.
1) store as a list, with the first element being the same as the index number. You can use [t b i i] to [pack i i i]
2) [zl join] the outlets of coll that report the value at index and index number, then [zl rot 1] or [zl rot -1] I can’t remember which right now but I think for two elements it doesn’t matter.


Dec 15 2011 | 2:00 pm

Thanks for the help cap10subtext, but this still isn’t working – perhaps if I post the patch then it may help:

-- Pasted Max Patch, click to expand. --

Again, I am trying to get the 10 integer values out of coll – I tried what you said but couldn’t get my head around it. Thanks a lot

Dec 15 2011 | 3:54 pm

[route] is the solution:

— Pasted Max Patch, click to expand. —


you may have to fill the [coll] first after pasting the patch

Dec 15 2011 | 6:17 pm

thanks for your help but i finally figured it out – it required a pack post coll and then zl rev, then routed into 10 int boxes. thanks for your help


Dec 15 2011 | 7:58 pm

Ah, yeah, forgot to mention route.

Anyways, here’s what I was yammering about, but glad you got it sorted.

-- Pasted Max Patch, click to expand. --

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP