Re: Creating ADSR Envelopes

On 11/01/2013 20:47, Chris Rogers wrote:

> If you're talking about an RC circuit then it has a particular
> time-constant.  So you can use setTargetAtTime() with the time-constant.
>   This is basically the same as charging/discharging a capacitor...

That's part of what's needed.

The other is that the developer still needs to be able to figure out 
when the attack ramp will finish according to the formula that function 
uses (and based on the initial EG value) so that he can schedule the 
decay phase.

If that's not done, the EG will sit at peak value for a short while 
before the decay starts.

Ray

Received on Friday, 11 January 2013 20:59:22 UTC