Mood Ring

Dec 27, 2011 at 2:41am

Mood Ring

This is my first Jitter patch. I was using jit.noise to get a lot of interpolated noise data for sound generation, and I thought jit.plur would look nice with some movement to it. I find it very soothing.

–edit–

Needs a little work. Just a moment.

#60867
Dec 27, 2011 at 2:56am

Ok got it working. Comments welcome.

– Pasted Max Patch, click to expand. –
#219141
Dec 27, 2011 at 5:50pm

@deerell
Since you asked for comments, I had a look. A couple of things jump out at me. The 3rd input to jit.shade that mixes the two inputs is constant so it really has no effect. I’m guessing something was left out of the patch that is supposed to smoothly fade between successive frames.

The other thing that jumped out at me was your use of jit.spill + jit.fill. I couldn’t figure out why you needed to do this. You should be able to do everything you need to do and keep it in the matrix domain without having to convert matrices to lists and then convert back from lists to matrices. This is a really inefficient way of working with matrices that will not scale well. If you goal is to delay by one frame a matrix, you can simply use another matrix as a buffer with @thru 0 and then bang out the matrix when you need it. This will be similar to [zl reg] for lists.

It’s definitely very soothing :) Thanks for sharing!

#219142
Dec 27, 2011 at 6:35pm

Thanks Wesley. That gives me some insight into how matrices work. I am much more used to working in Max. Is it not shading smoothly? It does so on my system, but I don’t really understand how jit.shade works.

#219143
Dec 27, 2011 at 7:12pm

jit.shade uses the 3d input to crossfade per-pixel between the 1st and 2nd inputs. It’s the same as jit.xfade except it works per-pixel. If a pixel is white, it takes only the 2nd input. Black takes the 1st input. In between mixes the two.

I’ve modified your patch to use jit.xfade and setup the buffering so that it continuously fades between sucessive matrices:

– Pasted Max Patch, click to expand. –
#219144

You must be logged in to reply to this topic.