Max/MSP Coll Data separation

nipper's icon

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,

Nipper

cap10subtext's icon

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.

HTH

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

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

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

brendan mccloskey's icon

[route] is the solution:

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

Brendan

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

nipper's icon

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

nipper

cap10subtext's icon

Ah, yeah, forgot to mention route.

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

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