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

Den 2012-06-29 13:01:52 skrev r baxter <baxrob@gmail.com>:

> 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)
>
> or such?

+1

It's clearer, and I like the shorter names too...

/Marcus




-- 
Marcus Geelnard
Core Graphics Developer
Opera Software ASA

Received on Monday, 9 July 2012 08:48:34 UTC