Skip to content

Commit cbc0fbe

Browse files
committed
Remove receivedTime (in favor of DOM Event timeStamp)
Fixes issue #145 .
1 parent 549d2a3 commit cbc0fbe

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

index.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -753,14 +753,9 @@ <h3 id="MIDIOutput"><a>MIDIOutput</a> Interface</h3>
753753

754754
<section>
755755
<h2 id="MIDIMessageEvent"><a>MIDIMessageEvent</a> Interface</h2>
756-
<p>An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received.</p>
756+
<p>An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM <code><a>Event</a></code> <code><a>timeStamp</a></code> property is defined as a <code><a>DOMHighResTimeStamp</a></code>, and represents the high-resolution time of when the event was received or is to be sent.</p>
757757
<dl title="[Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)] interface MIDIMessageEvent : Event"
758758
class="idl">
759-
<dt>readonly attribute DOMHighResTimeStamp receivedTime</dt>
760-
<dd>
761-
<p>A <code>DOMHighResTimeStamp</code> specifying when the event occurred.</p>
762-
<p class="note">The DOM4 <a class="externalDFN">Event</a> object has a timeStamp member in the event object that will be filled out with the current time, but that it is lower precision (DOMTimeStamp is defined as an integer number of milliseconds), has a different zero reference (DOMTimeSTamp is the number of milliseconds that has passed since 00:00:00 UTC on 1 January 1970), and therefore is less suitable for MIDI applications.</p>
763-
</dd>
764759
<dt>readonly attribute Uint8Array data</dt>
765760
<dd>
766761
<p>A Uint8Array containing the MIDI data bytes of a single MIDI message.</p>
@@ -770,9 +765,6 @@ <h2 id="MIDIMessageEvent"><a>MIDIMessageEvent</a> Interface</h2>
770765
<h2 id="MIDIMessageEventInit"><a>MIDIMessageEventInit</a> Interface</h2>
771766
<dl title="dictionary MIDIMessageEventInit : EventInit"
772767
class="idl">
773-
<dt>DOMHighResTimeStamp receivedTime</dt>
774-
<dd>
775-
<p>A <code>DOMHighResTimeStamp</code> specifying when the event occurred.</p>
776768
</dd>
777769
<dt>Uint8Array data</dt>
778770
<dd>

0 commit comments

Comments
 (0)