Filter repetition of numbers from a matrix

ygreq's icon

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 640x480 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?

Max Patch
Copy patch and select New From Clipboard in Max.

Thank you all for looking into this!
ygr

Jesse's icon

jit.iter and some javascript should get you there.

ygreq's icon

Hey, Jesse!

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

Jesse's icon

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

ygreq's icon

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

12root2's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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)

Wetterberg's icon

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

Tobias Rosenberger's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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