sending coll a list
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).
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.
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.
----------begin_max5_patcher---------- 567.3ocyV1rbaBCDG+L7TnQG5gVWOHIH1tOH8RGOdDHkD0BRd.QCsYx6d0Gf iciwQz5vjCvNZWgz+8Ghc4w3HXtpi2.AeA7MPTziwQQNWVGQ8iifUzthRZia ZvBUUEWpgK7wz7N8f+bgjCpUO.9.nPU1VIATFql2z.DRsBnLQksU47ZvspZ6 TJMAX7tg0pz77EpVoaAI8NuUI0Mheys9P3kI8t2S0E2Kj2sqlWn85GmkZBCv jUVCJCYMYIKS.a6eHAyIUU92+LJCdzFHoUtM.9UdMiJoCwLxUHK4ZWpid1op UO3Mw57o3X6sEAxPI+AiFdAB+D7x4reW0+ZO2mvPgEUaGmHnUqcD4larlzMK yLCPi.DxjAB9r.Ac8.xGAnj2Jlj5NdP7CFiI32eLYOs3G.APLUtDDT1jYMqQ WDJn2ePoUNfkoCF6AlEmXBgTIaBfTIWoZLjqGorUcm7QmEGcE.bHjDWo2KVu AekXSZu2F5O4rclU1nlcTstVj2p8s1hNfnHH2z+gcntsGpSEsUTyp2UnqOPx WfrRQi63jyFBx78rR6acMVSqKxESmW230mkS3+gD0PPsRNZRlSk2ERxsx+Ey v8ykYjI7F+35Ft0x8iC+0Ow3Ti0+ooWipstXP+Cs8.OKIFuQKjTsvj1GMIzI S5dAiwcwG9joRv1qLkN5EAX6YgcvZxT2.fdMMQNYRu4ZBGBmHyOmdUMgmeMg C47zL9tKDLkLuXJDMMuu4BpPv+ghLCdJ9OvFNqg4 -----------end_max5_patcher-----------
@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
Forums > MaxMSP