matrixctrl right output

Thomas Sandberg's icon

Hey Folks

Maybe I have become Max blind and the answer is only a keystroke away, but I need to output all the three individual cell values from a matrixctrl at once.
I know that I can send a getrow or getcolumn message and iterate through the object but the reference page also says that if you bang the matrixctrl all the three values from each button will be send to the right outlet as a list !
I have tried unpack, prepend set/ message box, print - but no output when banging !

Best regards,

Thomas

Emmanuel Jourdan's icon

It does work on my computer. Sending a bang makes matrixctrl output all the points x,y,value to the left inlet.

Luke Hall's icon

I think you misunderstand the reference page. When you send [matrixctrl] a bang it will send a stream of "x y value" lists from its first outlet (the left one). The "getrow" and "getcolumn" messages will send a list out the right outlet of just the values for that particular line.

lh

Thomas Sandberg's icon

yes, I may have misunderstood or interpreted the reference page to suit my need !!
I thought it was the x,y,value from all the cells in the matrixctrl that you would have in the right outlet when banging.
Like when you send a list of values to the input .

Thomas Sandberg's icon

I got it. Left outlet rules !

Thomas Sandberg's icon

This was what I needed to do. Thanks a lot for waking me up !

Max Patch
Copy patch and select New From Clipboard in Max.

Luke Hall's icon

Maybe something like this will work for you. Using the "nsub" message to [coll] means you don't have to iterate through all the locations in the [matrixctrl] each time. And selecting on/off states doesn't shift the counter position. I hope it helps.

lh

Max Patch
Copy patch and select New From Clipboard in Max.

Thomas Sandberg's icon

Thanks a lot !