这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit 807867c

Browse files
committed
default value for timestamp
Fixes #144.
1 parent 2890480 commit 807867c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ <h3 id="MIDIOutput"><a>MIDIOutput</a> Interface</h3>
742742

743743
<dl title="interface MIDIOutput : MIDIPort"
744744
class="idl">
745-
<dt>void send( sequence&lt;octet&gt; data, optional double timestamp )</dt>
745+
<dt>void send( sequence&lt;octet&gt; data, optional double timestamp = 0 )</dt>
746746
<dd>
747747
<p>
748748
Enqueues the message to be sent to the corresponding MIDI port. The underlying implementation will (if necessary) coerce each member of the sequence to an unsigned 8-bit integer. The use of sequence rather than a Uint8Array enables developers to use the convenience of <code>output.send( [ 0x90, 0x45, 0x7f ] );</code> rather than having to create a Uint8Array, e.g. <code>output.send( new Uint8Array( [ 0x90, 0x45, 0x7f ] ) );</code> - while still enabling use of Uint8Arrays for efficiency in large MIDI data scenarios (e.g. reading Standard MIDI Files and sending sysex messages).
@@ -775,7 +775,7 @@ <h3 id="MIDIOutput"><a>MIDIOutput</a> Interface</h3>
775775
</dd>
776776
<dt>optional double timestamp</dt>
777777
<dd>
778-
The time at which to begin sending the data to the port (as a <a href="#DomHighResTimeStampDfn">DOMHighResTimeStamp</a> - a number of milliseconds measured relative to the navigation start of the document). If <code>timestamp</code> is not present or is set to zero (or another time in the past), the data is to be sent as soon as possible.
778+
The time at which to begin sending the data to the port (as a <a href="#DomHighResTimeStampDfn">DOMHighResTimeStamp</a> - a number of milliseconds measured relative to the navigation start of the document). If <code>timestamp</code> is set to zero (or another time in the past), the data is to be sent as soon as possible.
779779
</dd>
780780
</dl>
781781
</dd>

0 commit comments

Comments
 (0)