W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

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

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:28:40 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/155@github.com>
> 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]


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:
Received on Wednesday, 11 September 2013 14:29:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:24 UTC