Forums > MaxMSP

Jitter – Add Noise to Matrix but only to Values that aren't 0


Sym
February 1, 2014 | 11:02 am

Hey, I’m trying to figure out how I can set it up that I add jit.noise to a jit.matrix but only have the noise beeing added to the values in the matrix that aren’t 0.

Can somebody give me a hint how to achieve this?


February 1, 2014 | 3:11 pm

You can mask your input matrix using jit.op, and then multiply by a noise matrix.

<code>

– Pasted Max Patch, click to expand. –

</code>


February 1, 2014 | 3:15 pm

hi,
at the same time Jesse :)

<code>

– Pasted Max Patch, click to expand. –

</code>



Sym
February 2, 2014 | 5:17 am

Thanks guys, that worked perfectly!

Now I have the noise only on the values over the treshold and I would like to scale it depending on the value of the number in the matrix it is modulating.

So that to numbers in the matrix with smaller numbers only a smaller amount of noise is added.

Is there any object to scale the incoming noise matrix accordingly?


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