sending coll a list

toddak's icon

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 8x8 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).

toddak's icon

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.

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

So you want the 8x8 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.

toddak's icon

@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