You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
event handler event types</dfn> and corresponding <code><dfndata-cite=
101
-
"HTML/webappapis.html#eventhandler">EventHandler</dfn></code>, interface are defined in [[HTML]]. </p>
102
96
<p>
103
97
The <dfnid="WebAudio">Web Audio API</dfn> and its associated interfaces and concepts are defined in [[webaudio]].
104
98
</p>
105
-
<p>
106
-
The <code><dfndata-cite="DOM#event">Event</dfn></code> interface and how to <dfndata-cite=
107
-
"DOM#concept-event-fire">fire an event</dfn> are defined in [[DOM]].
108
-
</p>
109
-
<p>
110
-
The <dfndata-cite="hr-time#dom-domhighrestimestamp">DOMHighResTimeStamp</dfn> interface is defined in [[hr-time]].
111
-
</p>
112
99
<p>
113
100
The terms <dfn>MIDI</dfn>, <dfn>MIDI device</dfn>, <dfn>MIDI input port</dfn>, <dfn>MIDI output port</dfn>, <dfn>MIDI interface</dfn>, <dfn>MIDI message</dfn>, <dfn>MIDI System Real-Time message</dfn> and <dfn>system exclusive</dfn> are defined in [[MIDI]].
114
-
<p>
115
-
<code><dfndata-cite="ECMASCRIPT#sec-promise-objects">Promise</dfn></code> objects are defined in [[ECMASCRIPT]].
116
-
</p>
117
-
<p>
118
-
The <code><dfndata-cite="WEBIDL#dfn-DOMException">DOMException</dfn></code> is defined in [[WEBIDL]].
119
101
</p>
120
-
<!-- FIXME: This list is not exhaustive. -->
121
102
</section>
122
103
123
104
<section>
@@ -126,7 +107,7 @@ <h2>Obtaining Access to MIDI Devices</h2>
126
107
<section>
127
108
<h2>Feature Policy Integration</h2>
128
109
<p>
129
-
<adata-lt="Navigator.requestMIDIAccess">requestMIDIAccess</a> is a <adata-cite="FEATURE-POLICY#policy-controlled-feature">policy-controlled feature</a>, as defined by <adata-cite="FEATURE-POLICY">FeaturePolicy</a>.
110
+
<adata-lt="Navigator.requestMIDIAccess">requestMIDIAccess</a> is a <adata-cite="FEATURE-POLICY#policy-controlled-feature">policy-controlled feature</a>, as defined by [[[Feature-Policy]]].
130
111
</p>
131
112
<p>
132
113
The <adata-cite="FEATURE-POLICY#feature-name">feature name</a> for <adata-lt="Navigator.requestMIDIAccess">requestMIDIAccess</a> is <dfndata-lt="midi-fp" data-lt-noDefault><code>midi</code></dfn>.
@@ -145,7 +126,7 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
145
126
};
146
127
</pre>
147
128
<dl>
148
-
<dt><dfn>requestMIDIAccess</dfn></dt>
129
+
<dt><dfn>requestMIDIAccess()</dfn> method</dt>
149
130
<dd>
150
131
<p>
151
132
When invoked, returns a Promise object representing a request for access to MIDI devices on the user's system.
@@ -165,11 +146,11 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
165
146
(or not) based on whether system exclusive support is
166
147
requested, as system exclusive access has greater privacy and
167
148
security implications.</p>
168
-
<p>If the user declines or the call is denied for any other reason, the Promise is rejected with a <a>DOMException</a> parameter.
149
+
<p>If the user declines or the call is denied for any other reason, the Promise is rejected with a {{DOMException}} parameter.
169
150
</p>
170
-
<p>
151
+
<pdata-link-for="Navigator">
171
152
When the
172
-
<adata-lt="Navigator.requestMIDIAccess">requestMIDIAccess</a> method is called, the user
153
+
{{requestMIDIAccess()}} method is called, the user
173
154
agent MUST run the <dfn>algorithm to request MIDI Access</dfn>:
174
155
</p>
175
156
@@ -221,7 +202,7 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
221
202
<li><p>Call <var>resolver</var>'s <code>accept(value)</code> method with <var>access</var> as value argument.</p></li>
222
203
<li><p>Terminate these steps.</p></li>
223
204
224
-
<li><p><em><b>failure</b></em>: Let <var>error</var> be a new <a>DOMException</a>.
205
+
<li><p><em><b>failure</b></em>: Let <var>error</var> be a new {{DOMException}}.
225
206
This exception's .name should be <code>"SecurityError"</code> if the
226
207
user or their security settings denied the application from creating a MIDIAccess instance with the requested options, or if the error is the result of <var>document</var> not being <adata-cite="!HTML#allowed-to-use">allowed to use</a> the feature, <code>"AbortError"</code> if the page is going to be closed for a user navigation, <code>"InvalidStateError"</code> if the underlying systems raise any errors, or otherwise it should be <code>"NotSupportedError"</code>.</p></li>
227
208
<li><p>Call <var>resolver</var>'s <code>reject(value)</code> method with <var>error</var> as value argument.</p></li>
<pclass="note">It is important to understand that leaving an <a>EventHandler</a> attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIAccess</a>, you should remove any <adata-lt="MIDIAccess.onstatechange">onstatechange</a> listeners.</p>
321
+
<pclass="note">It is important to understand that leaving an {{EventHandler}} attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIAccess</a>, you should remove any <adata-lt="MIDIAccess.onstatechange">onstatechange</a> listeners.</p>
341
322
<pid="event-midiaccess-statechange">
342
323
Whenever a previously unavailable MIDI port becomes available for use, or an existing port changes the state attribute,
343
324
the user agent SHOULD run the following steps:</p>
<pclass="note">It is important to understand that leaving an <a>EventHandler</a> attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIPort</a>, you should remove any <adata-lt="MIDIPort.onstatechange">onstatechange</a> listeners.</p>
413
+
<pclass="note">It is important to understand that leaving an {{EventHandler}} attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIPort</a>, you should remove any <adata-lt="MIDIPort.onstatechange">onstatechange</a> listeners.</p>
The time at which to begin sending the data to the port (as a <a>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.
717
+
The time at which to begin sending the data to the port (as a {{DOMHighResTimeStamp}} - 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.
<p>An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM <a>Event</a><code>timeStamp</code> attribute is defined as a <a>DOMHighResTimeStamp</a>, and represents the high-resolution time of when the event was received or is to be sent.</p>
795
+
<p>An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM {{Event}}<code>timeStamp</code> attribute is defined as a {{DOMHighResTimeStamp}}, and represents the high-resolution time of when the event was received or is to be sent.</p>
0 commit comments