Re: [Bug 17334] (setTargetValueAtTime): AudioParam.setTargetValueAtTime is misleading and underdefined

On 29 Jun 2012, at 12:09, r baxter wrote:

> Hello, I'm new here.  Please excuse, or freely admonish, if this
> comment is more distracting than useful.
> 
> Part of what I find confusing, in the spec as it reads, is that the
> function signature is divided.
> 
> Why not:
> 
> AudioParam.set(value, time)
> AudioParam.linearRamp(value, time)
> AudioParam.exponentialRamp(value, time)
> AudioParam.approach(target, time, k)
> AudioParam.curve(value_set, time, duration)

I keep going back to this, and frankly, I like it. I may suggest AudioParam.setValue rather than AudioParam.set - but maybe even that is not useful.

Olivier

Received on Thursday, 5 July 2012 15:05:03 UTC