Fading Out

ardaksoy's icon

Hello,

I am studying one of Andrew Benson's recipes. As you can see in the patch attached below, matrix data is on constant move. What I am trying to do is to fade them out gradually. I couldn't seem to work this out.

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

Thanks.

diablodale's icon

hi. would you add a bit more detail? might be able to assist more.
What is the object analyzer~ ? Its not part of the standard max distribution so yoru patch won't run as is.
You want to fade...what...out? the sound? The whole mesh, one part of a mesh? What specifically do you want to fade?

ardaksoy's icon

Sorry about my language if I was not clear enough.

Analyzer is a patch for analyzing audio and in my case it sends out a list with 25 different values.

When you feed audio through the patch it moves the data on the matrices. I want to change the transparencies of the points after the first row and give them a gradual fade effect.

I hope I expressed myself better this time.

Thanks.

diablodale's icon

I'm not able to run your patch because part of it is still missing (the analyze part), Without that, I can only guess.

Transparency is controlled by the alpha component of a color. On the mesh object, you have set the color for everything to be .3,.9,.9,.9
That 0.9 at the end is the alpha.

With jit.gl.mesh you can set the color PER VERTEX. You are feeding in all your vertices on the first inlet. On the 4th inlet, you can send a color matrix. Look at the reference documentation to see how. In short, you send a matrix of the same dimensions and having 4 planes. The 4 planes being the r,g,b,a color values. You will need to generate this color matrix in your patch and you can fade the alpha however you would like. 1.0 represents completely opaque. 0.0 represents fully transparent.

ardaksoy's icon

That helps a lot. I will work on it thank you very very much.