Forums > Jitter

Filter repetition of numbers from a matrix

October 31, 2013 | 10:10 am

Hi folks,

I am trying to figure out how I can filter a repetition of numbers coming out of a matrix.
For a small matrix I know I can use jit.spill and I filter the resulting list with zl.thin.

But what about a larger matrix of 640×480 pixels (307200 pixels in total)? I know zl.thin has a limit (is it 32768?). Can I overstep any limits? Are there any other solutions I can use to filter repetitions of numbers in a matrix?

Thank you all for looking into this!


– Pasted Max Patch, click to expand. –


October 31, 2013 | 2:36 pm

jit.iter and some javascript should get you there.

November 1, 2013 | 1:56 am

Hey, Jesse!

I don’t know anything about javascript. Do you know if I can find a patch somewhere?

November 3, 2013 | 4:33 pm

Javascript is a programming language, so a patch will not suffice. I’d recommend you look at the Max tutorials which cover it.

November 4, 2013 | 12:49 am

"Javascript is a programming language" That much I know :)
I was asking for a patch with a script inside.

November 4, 2013 | 2:53 am

You can filter the output itself using comparison to a list of the output history list. like with this: (just remember to change the "#1" to what you need (i/f)

– Pasted Max Patch, click to expand. –


November 4, 2013 | 3:48 am

… I can’t really grok what you need from the patch, but would jit.change help in any way?

November 4, 2013 | 4:26 am

if it’s just about 1 plane char data (which has not more than 256 different numbers), you could use coll:


– Pasted Max Patch, click to expand. –


Viewing 8 posts - 1 through 8 (of 8 total)