<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17344</bug_id>
          
          <creation_ts>2012-06-05 11:36:45 +0000</creation_ts>
          <short_desc>(NoteOnOffNaming): noteOn, noteGrainOn and noteOff naming</short_desc>
          <delta_ts>2012-10-12 07:55:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>AudioWG</product>
          <component>Web Audio API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>TBD</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="Chris Rogers">crogers</assigned_to>
          <cc>cwilso</cc>
    
    <cc>joe</cc>
    
    <cc>olivier.thereaux</cc>
    
    <cc>public-audio</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68655</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-06-05 11:36:45 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68840</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-06-07 16:01:26 +0000</bug_when>
    <thetext>Comment from Chris Rogers, 18 May 2012:

Agreed that the names are unfortunate, also because &quot;note-on&quot; and &quot;note-off&quot; have specific connotations in MIDI which are not the same as in this spec. So it will be a good idea to change the names.

We have already discussed in the tele-conferences (and in much earlier discussions in the mailing list) that start() and stop() would be good names.

I still believe the &quot;duration&quot; is useful, but we can discuss further.

I&apos;m OK with making special meaning of 0 go away --- it used to be this way, but for some reason somebody changed it in WebKit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71706</commentid>
    <comment_count>2</comment_count>
    <who name="Joe Berkovitz / NF">joe</who>
    <bug_when>2012-07-31 10:46:28 +0000</bug_when>
    <thetext>*** Bug 18442 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72533</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-08-22 15:21:23 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Comment from Chris Rogers, 18 May 2012:
&gt; We have already discussed in the tele-conferences (and in much earlier
&gt; discussions in the mailing list) that start() and stop() would be good names.

Teleconference discussion minuted here:
http://www.w3.org/2012/05/02-audio-minutes.html#item02</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72597</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-08-23 09:42:55 +0000</bug_when>
    <thetext>We reached a proposed resolution on this during the teleconference on 22nd August 2012:
http://www.w3.org/2012/08/22-audio-minutes#item02

* noteOn/noteOff will be renamed to start/stop 
* The old name will be mentioned in an informational section in the web audio spec
* The Webkit implementation is likely to keep supporting the old names
* Other upcoming implementations are not encouraged to support the old names

I am switching the issue as ASSIGNED (to the editor), will close once changes have been made in the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72622</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2012-08-23 17:36:26 +0000</bug_when>
    <thetext>I didn&apos;t notice any comment in the notes or this bug about renaming noteGrainOn as well.  I presume this should be renamed to startGrain()?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73537</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-09-10 10:32:12 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; I didn&apos;t notice any comment in the notes or this bug about renaming noteGrainOn
&gt; as well.  I presume this should be renamed to startGrain()?

Don&apos;t recall us talking about noteGrainOn indeed, but startGrain() does sound consistent with the other changes. 

I might set aside a couple of minutes during our call this week to get a quick show of hands about it, then we can wrap up this re-naming issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73752</commentid>
    <comment_count>7</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-09-13 09:35:00 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; I didn&apos;t notice any comment in the notes or this bug about renaming noteGrainOn
&gt; as well.  I presume this should be renamed to startGrain()?

As discussed on the 12th September teleconference, the suggestion is to not have a separate method for this, but instead to overload the start() method with extra parameters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74765</commentid>
    <comment_count>8</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-09-28 09:35:15 +0000</bug_when>
    <thetext>Resolved per http://dvcs.w3.org/hg/audio/rev/aea45daa1200

Note that the old names have been added to an informational section.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76067</commentid>
    <comment_count>9</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-10-12 07:55:44 +0000</bug_when>
    <thetext>No objection after close to 2 weeks. Closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>