Jitter State Comparison
I’ve been banging my head against the wall regarding what is probably the most basic solution to this problem, and I could use some assistance. I’m trying to compare the current state of a black and white [jit.matrix] with its previous frame, and I need the output to display gray for every pixel that has been turned off and white for every pixel turned on (since the previous iteration). I have a feeling the problem can be solved with a [t l l] object going into a [jit.expr] logical command, but I’m relatively new to Jitter and can’t figure out a solution.
If anybody’s wondering, I’m trying to store/recall data in a 64×16 jitter matrix so I can freely scroll around and have a 16×16 section display on my Monome 256. I’ve been at this for a while now, any suggestions?
You need to do two different operations, one for 0->1 and another for 1->0. Does somethging like this work?
----------begin_max5_patcher---------- 683.3oc2W0taaCBE821OEH+ysrHCD+0zTUeA1SvTUDwlkPjCDYS9Xqpu6Cv1 aosoMXmUl69QHB3F3bN2Oxk688BVHNRqC.eF7Mfm289ddlkzK30N2KXC4XdI o1XVfTrbYIMXRyV7caX7RpzrGrcwsDY9JFe47JZtr4rQo3ogS.3X8HJraDbW 6OgUXNbwh0eBFexgK1Ie9oWQ1Pkzp4TNYgBJp8Ba2qwb4O1Rat1.FWAf6za9 fuudXhkzbMSNc6AFuPbnubE2vObBR+UpYR7KQ1YmmrnWhPASTeFDi3zCpar6 5jzixeSzOdVJhtLEQFuJLzLCldBG+tfK4J+j4N9pfSxEAmg93dReEZmugHqX GaEhSttZ1OMlkMMzsN7HLznFgYV3vQiAG9G.2tmTBBmF0WO+rzlT3nYWomGN Z77uhN8kgJO3l7izApNYicwQBJAk8MOoUbfY3qRbfgCKEZLTp.hSLwGovKWp HcLTo3l9lAfRB+ajAj7eYFPq3bsY.w+iS.dKjj3YMgMwCTShd+VTHwTS.FYQ MgQQ6h2L3tG5b13qr6A76glG3BVME.A4qHUp3avidXSuxMBaBPPYCTtPic4R 8dtJgNdHDbKIWx1qzsNiJYbZtXGWdJj6Y.WqNBapwj0+VNd8mj9LAbAguzFY yXhggO4M3FpnW+wZYsXWUd2kz0KD3OrofVKYbhjI3mXjpaRUXXmMqXEET9ou ZtfUqeHsgtm2o1K3.s.NgNANYVHN5Gh3H3nK.bY73N3fsANybGdf1fGryBlS rENiI4A4L7DYQp9SJO8VBGaxsRbVrSrEhShyzFahjScZfykPSr6Rqr.MtKox lRxQNCMHKPCdToMC8eqZZDirc6dZUc6QZ.hp800hJ8z3IloLdyTyIFTQ2y5r O0WeZO3+KTSbHeI -----------end_max5_patcher-----------