Can you monitor a jit.matrix for occurred changes?

    Sep 18 2012 | 11:47 pm
    Hi gang,
    Although I'm not a Max newbie (though honestly my main approach has been through Max for Live) I am very new when it comes to Jitter.
    I'm currently looking into jit.matrix; in particular a way to store an 8 by 5 grid (this will sound familiar with some people) but also to detect any changes in the matrix after which another routine will need to apply those changes.
    I read through quite some material now, I know of the jit.change but that only seems to apply to comparing one matrix with another, initiated by the program. I'm looking more for a solution where any change is detected and reported.
    The obvious question: does something like this exist and did I completely look over it, or is my current assumption correct that the best way to do this would be to poll a matrix manually and detect changes that way (using jit.change I assume right now) ?
    Thanks in advance for any hints you could give me.

    • Sep 19 2012 | 7:51 am
      Whenever anything happens that MIGHT change the contents of the jit.matrix, just send the matrix through jit.change to determine whether it's different from the way it was previously. In other words, you don't need to be polling it constantly (every x milliseconds); only when something happens that might change it.
    • Sep 19 2012 | 10:09 am
      Thanks for your example, appreciate it!
      Yeah, I see what you mean now and I think I have to re-adjust my earlier ideas on using the matrix. Guess I was stuck in a specific idea there, but now I see how I could easily init any actions (depending on a change) myself.
      Thanks again!