Can you monitor a jit.matrix for occurred changes?
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.
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.
----------begin_max5_patcher---------- 1163.3oc6Y80jhhCD+Y7SQJd51pbmhDQEuWt49br0VVQHil4vDNRb1Yus1u6 WSR.ADPbNuwYqxWbF5P5z8u9W+mn+Xhm+F4qLkO52QeA448iIddFQEB7bO64 um9ZbJUYdM+X498Lg1epcMM6UsQtRtmo2wEaQ6nYYLgZJZyAMRHQw6nhsLjL N9PtpbeobAKVdPX1LwILipiKTw5bVr1ZT3nEODLEMiT7IlDYdH7g.zWc6gmX Nd4lm+LNpT6OIEZAcOyrzelyookqHNrmKRYZiyfOJTdPWJMnlRT7+wnDLb9E R+4jIEeL8pAVVvQgz6Xn8TcN+UTLbtvltXnZQXMjBuZPjZwuJHUBOAw0NX5O 7626CwFhBw9mn4lGB5w8C+n49PphVJFx8BBp4djfAcOxE3DkRshzeOiYOP+M .h6i95avYDruAlwojdVJJ37tHdkgAOawftXvEFAIc57jdhfChISQ9WUbIGNF FJmkIy0i.dVXpAtb1PvypaB5b0Qlm45GbcOdzhOHL5w8xDFJ.8ndWNSsaPJE dogEgCMkFIgCBZWmtGWJnA93Zag++WfOWOEn8h8+3h+9.So4RA.kOkJo5YDT DZ9H.QWQGaCl9.wk+xBhmsDLIz..11rCWAdwss.7YcErALGkqD9grWRFLXos xv4CXQinfI4pPawucZakQY7CVtCRbXBnRdJ6EVtBRbqcRd9vr10D6UaKE.4y RihVLsRDWXEETIJm8Bub+ysBgvyjxEKAy4FrbUnk2XdHLpFZBAxsox3+hkTW 89R3p.bQFToFltipcmS0xIrmnGR0q6FwZt9SzXVuatyXlm+1bdhTTXDM1Yg3 xiCxFriLV2WLuffl0wdUfabPsglW.aaRY0pWADToLs4RUQJfmSEbHbyzbqsR BpTJeeVN2NgekLlfB5XmJNWll1PU1UdoiURffYL6a7D8NitpijvqyyJi.9UP TBGt+gtoLMcqpojF2SrNKqdBbC4sRjsj+R80SFaTsDVx7xOqBKsRZmWWackd 1+L6lUJuyQg99si4hexbYLEPnN4FYk60TDyko7FwiFE19O22dX.0Um+zN2sQ zY0UW+oUW.dSZovNRxGeG8qDzar6QAbND6rLQRuHSPuHCdH220vrOxZwxepK 13wJXEeqA8jvZb2h06FqTxC4wkFhiUfZ55IETQQU47uTkO1581wSRZV9zVwQ UT+x1nXTw0K0hIizhmckr3ivdBC5W.ZH96qioPib6g4nuk8U8UzWXIqAK.3a qoZflCirYCW0a52Uo4QzzafkNsv946.2SeCna+FZpabkpiqgQbRG6KpM+jif 70ZnQ5YmYzMYrsEzhkC9cPbelw6yLdelwa8LitLVbP3MdpQnpyMbfQgjqXWz rgkk5reshD78gCG6vgNjKL59zg2mN79zgePlNz.yMY11gEayObiLdBun3GU5 X.uGRAtA64TFworgSFdcr1ypwXNAualSDbR3yXNqd2rlki.bhd2rFxHrlkua VC9Ck0DNFZ76l0rXDVyaME2VAp00qJLjVWqp0UpZecJPa+bx+BjjxH.O -----------end_max5_patcher-----------
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.
Forums > MaxMSP