matrixctrl right output

    Apr 26 2009 | 2:54 pm
    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,

    • Apr 26 2009 | 5:57 pm
      It does work on my computer. Sending a bang makes matrixctrl output all the points x,y,value to the left inlet.
    • Apr 26 2009 | 6:11 pm
      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.
    • Apr 26 2009 | 8:04 pm
      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 .
    • Apr 26 2009 | 8:29 pm
      I got it. Left outlet rules !
    • Apr 26 2009 | 8:56 pm
      This was what I needed to do. Thanks a lot for waking me up !
    • Apr 26 2009 | 11:16 pm
      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.
    • Apr 27 2009 | 9:49 pm
      Thanks a lot !