Forums > MaxMSP

Live.gain Envelope Automation Help

August 10, 2012 | 9:18 pm

Hey,

I’m trying to make a simple envelope amplitude modulator in max4live and I’m running into some issues. I’m trying to use data coming from the function object to control the amplitude of the live.gain object. Right now I have the data coming from function and a line object being scaled to the range of the live.gain slider but the live.gain slider always gets scaled above 0dBFS instead of from the bottom of the slider up.

Thanks for any help,
Brandon


August 11, 2012 | 10:17 am

Your scale object wasn’t set up properly : the ‘Lo and Hi domain’ parameter of the function object is set up to "0. 1.", not 0 127. And I don’t get what you’re after. If you want to modify the live.gain value using function, why turning the function output to signal ?


August 11, 2012 | 10:43 am

Yes, you should use an object’s Inspector to ensure the parameters are in the correct range; as Stephane points out, use the "setrange $1 $2" message to function to alter the min/max values on the Y axis. Also, try sending a float rather than a signal to live.gain:

– Pasted Max Patch, click to expand. –

Please also take care when you are copying and pasting objects and subpatchers from the helpfiles; if you don’t understand exactly what they are doing, and how, then you may end up wasting many frustrating hours on this forum, searching for solutions.

Peace
Brendan


Viewing 3 posts - 1 through 3 (of 3 total)