Filter repetition of numbers from a matrix

Oct 31, 2013 at 10:10am

Filter repetition of numbers from a matrix

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!
ygr

<code>

– Pasted Max Patch, click to expand. –

</code>

#269765
Oct 31, 2013 at 2:36pm

jit.iter and some javascript should get you there.

#269796
Nov 1, 2013 at 1:56am

Hey, Jesse!

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

#269821
Nov 3, 2013 at 4:33pm

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

#270052
Nov 4, 2013 at 12:49am

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

#270070
Nov 4, 2013 at 2:53am

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)
<code>

– Pasted Max Patch, click to expand. –

</code>

#270075
Nov 4, 2013 at 3:48am

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

#270080
Nov 4, 2013 at 4:26am

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

<code>

– Pasted Max Patch, click to expand. –

</code>

#270083

You must be logged in to reply to this topic.