Max/MSP Coll Data separation

Dec 15, 2011 at 1:13pm

Max/MSP Coll Data separation

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

#60688
Dec 15, 2011 at 1:26pm

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

#218439
Dec 15, 2011 at 2:00pm

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

#218440
Dec 15, 2011 at 3:54pm

[route] is the solution:

– Pasted Max Patch, click to expand. –

Brendan

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

#218441
Dec 15, 2011 at 6:17pm

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

#218442
Dec 15, 2011 at 7:58pm

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. –
#218443

You must be logged in to reply to this topic.