<?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>17402</bug_id>
          
          <creation_ts>2012-06-05 12:28:00 +0000</creation_ts>
          <short_desc>(NoteOnOffInteraction): noteOn and noteOff (start and stop) interaction</short_desc>
          <delta_ts>2014-10-28 17:16:38 +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>WONTFIX</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="Michael[tm] Smith">mike</reporter>
          <assigned_to name="Chris Rogers">crogers</assigned_to>
          <cc>olivier.thereaux</cc>
    
    <cc>ot</cc>
    
    <cc>philipj</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>68714</commentid>
    <comment_count>0</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-06-05 12:28:00 +0000</bug_when>
    <thetext>Audio-ISSUE-53 (NoteOnOffInteraction): noteOn and noteOff interaction [Web Audio API]

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

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

What happens if noteOff is called before noteOn?

What happens if noteOn or noteOff is called twice with different values after each other?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68783</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-06-07 08:17:22 +0000</bug_when>
    <thetext>[admin] Assigning items currently being worked on by editor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68815</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-06-07 15:00:46 +0000</bug_when>
    <thetext>Change set from the editor: 
https://dvcs.w3.org/hg/audio/rev/5614c60b62e1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68816</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-06-07 15:01:21 +0000</bug_when>
    <thetext>More feedback from Philip in http://lists.w3.org/Archives/Public/public-audio/2012AprJun/0432.html

«
We&apos;d prefer if the conditions were defined strictly in terms of  
playbackState.

Suggested phrasing for noteOn: &quot;If playbackState is not UNSCHEDULED_STATE,  
then the user agent must throw an InvalidStateError exception. Set  
playbackState to SCHEDULED_STATE.&quot;

Suggested phrasing for noteOff: &quot;If playbackState is UNSCHEDULED_STATE,  
then the user agent must throw an InvalidStateError exception.&quot; followed  
by the steps to schedule a playback stop.

As you can tell, we don&apos;t think there&apos;s any point in disallowing multiple  
calls to noteOff. If we want to disallow it, a new playbackState will be  
needed. One can of course implement a hidden state, but it seems simpler  
and better to make readyState match reality.
»</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68868</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-06-08 08:28:28 +0000</bug_when>
    <thetext>Actually, my suggestion is still not good enough. Quoting &lt;http://wiki.whatwg.org/wiki/Howto_spec#Dealing_with_exceptions&gt;:

&quot;It is important to state whether the algorithm should be terminate when the exception is thrown or not; in some cases, an algorithm will continue even after an exception is thrown (e.g. to do some cleanup).&quot;

In other words, &quot;and terminate these steps&quot; is missing.

(That wiki page is a great read, we should take its advice on many issues.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72703</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2012-08-24 15:03:55 +0000</bug_when>
    <thetext>Updating issue title to reflect (proposed) name changes from noteOn/noteOff to start/stop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113866</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:13:45 +0000</bug_when>
    <thetext>Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114009</commentid>
    <comment_count>7</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:16:38 +0000</bug_when>
    <thetext>Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>