sending coll a list

May 7, 2011 at 10:09am

sending coll a list

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

#56951
May 7, 2011 at 11:11am

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.

#204119
May 7, 2011 at 4:48pm

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. –
#204120
May 8, 2011 at 7:02am

@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

#204121

You must be logged in to reply to this topic.