Fading Out

Apr 18, 2013 at 8:50pm

Fading Out

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.

Thanks.

– Pasted Max Patch, click to expand. –
#67807
Apr 18, 2013 at 11:45pm

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?

#243813
Apr 20, 2013 at 1:10pm

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.

#243814
Apr 20, 2013 at 10:56pm

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.

#243815
Apr 21, 2013 at 10:51am

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

#243816

You must be logged in to reply to this topic.