[web-audio-api] (NoteOnOffNaming): noteOn, noteGrainOn and noteOff naming (#155)

> Originally reported on W3C Bugzilla [ISSUE-17344](https://www.w3.org/Bugs/Public/show_bug.cgi?id=17344) Tue, 05 Jun 2012 11:36:45 GMT
> Reported by Philip Jägenstedt
> Assigned to 

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.

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/155

Received on Wednesday, 11 September 2013 14:29:04 UTC