Audio-ISSUE-52 (NoteOnOffNaming): noteOn, noteGrainOn and noteOff naming [Web Audio API]

Audio-ISSUE-52 (NoteOnOffNaming): noteOn, noteGrainOn and noteOff naming [Web Audio API]

http://www.w3.org/2011/audio/track/issues/52

Raised by: Philip Jägenstedt
On product: Web Audio API

The naming convention is unfortunate as the connection to a note is not clear. For a game sound effects or UI sound effects, this terminology is fairly obscure.

The noteGrainOn grainDuration parameter does not seem to serve any purpose given that noteOff also exists.

Suggested simplification:

    void play(optional double when, optional double offset, optional double duration);
    void stop(optional double when);

Note that the special meaning of 0 in note* is not needed if the arguments are optional.

Received on Tuesday, 15 May 2012 15:22:14 UTC