matrixctrl right output

Apr 26, 2009 at 2:54pm

matrixctrl right output

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

#43540
Apr 26, 2009 at 5:57pm

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

#156232
Apr 26, 2009 at 6:11pm

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

#156233
Apr 26, 2009 at 8:04pm

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 .

#156234
Apr 26, 2009 at 8:29pm

I got it. Left outlet rules !

#156235
Apr 26, 2009 at 8:56pm

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

– Pasted Max Patch, click to expand. –
#156236
Apr 26, 2009 at 11:16pm

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

– Pasted Max Patch, click to expand. –
#156237
Apr 27, 2009 at 9:49pm

Thanks a lot !

#156238

You must be logged in to reply to this topic.