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

Feb 1, 2014 at 11:02am

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

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?

#279806
Feb 1, 2014 at 3:11pm

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

<code>

– Pasted Max Patch, click to expand. –

</code>

#279820
Feb 1, 2014 at 3:15pm

hi,
at the same time Jesse :)

<code>

– Pasted Max Patch, click to expand. –

</code>

#279821
Feb 2, 2014 at 5:17am

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?

#279851

You must be logged in to reply to this topic.