Forums > MaxMSP

sending coll a list

May 7, 2011 | 10:09 am

Hi all,

Just needing a little help getting to know the coll object a little better.

But if I need to send the output of an 8×8 matrixctrl object to it in the form of a list, is there an easy way to tell it an order?

As in, that coll’s index 1 is matrix ctrl’s 0 0, coll’s index 2 is matrixctrl’s 1 0, etc etc..?

Although realistically, coll’s index 1 would equal 0 0 0(or 1), and coll’s index two would be 1 0 0(or 1).


May 7, 2011 | 11:11 am

Getting closer…

If I bang the top left input of a matrixctrl, I can get the whole list of x y z out of the bottom left outlet to a print object, which looks like the information I need.

I’m assuming I need a listfunnel in order to get it into the coll object.

However, when I go from the bottom left outlet of a matrixctrl, into a listfunnel, into print, it changes it from the ‘x y z’ of the first example, to only two values, and the information I get doesn’t seem to make sense… Ie, the first value isn’t an integer that increases in value by 1.


May 7, 2011 | 4:48 pm

So you want the 8×8 matrixctl’s data to live in 64 addresses of a coll? This does that by combining the row and column address of the matrixctl into one number for the coll index. The addresses aren’t contiguous, but are reversible if you wanted to dump it back into a matrixctl.

– Pasted Max Patch, click to expand. –

May 8, 2011 | 7:02 am

@chris muir: Wow, very clever. So by packing two values together you’ve created your own unique indexing system.

And yes, I do need to dump back into the matrixctrl at a later time, so the reverse mathematics would make sense.

Thanks chris, that is a substantial help! Many many thanks! :D


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