Smoothing values from jit.noise

Oak Matthias's icon

Hi, Jitter newbie here,

I'm making a patch that contains amongst other things, a particle system, and have just had the pleasure of plugging a jit.noise into the color array input of the jit.gl.mesh. Every particle (or line in this case) randomly changing to a different colour, happy days.

Now, having recently discovered smoothly gliding from random frequency to frequency using the line object, I thought I'd try to make the lines smoothly randomly change in colour (which would be ideal, as I'm hoping the patch will be able to incrementally transition from jarringly random and quite frankly, unpleasant to very smooth and relaxing with the change of 1 parameter)....
I've tried some jit.fill into cellblock experiments to use a line object outside of the jit environment to refill another matrix with a much higher framerate than the jit.noise... no joy.
I was hoping there would be something clever to be done within jit.gl but am still at the 'ripping apart tutorial patches and tweaking' stage of my jitter journey so really am none the wiser.

Any pointers or "use jit.xxx you dummy!" much appreciated!
All the best, Oak

Gregory Taylor's icon

"Use jit.slide, you dummy!" Is that what you were looking for? :-)

Rob Ramirez's icon

and what might not be so obvious for these kinds of tasks (interpolating matrices changing at a rate slower than the framerate) is that you should send your matrix to an intermediate jit.matrix object, and bang that out at framerate to the jit.slide object.

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

Oak Matthias's icon

Great stuff! Thanks for the prompt Gregory it certainly is, and thanks for the hint on how to use the dam thing Rob! Working like a charm now :-) . Apparently jit.noise really wants that 'char' in there for the jit.slide!

I've attached my "frankenPatch" for your amusement (jitter bits mostly thanks to Federico Foderaro tutorials), random is the name of the game for this one :-p. Next up, I'm hoping to be able to mix between particle systems, but that is another story I suspect!

Thanks again, all the best, Oak.

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