Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 902025 of MIDIAccess

  • Revision slug: Web/API/MIDIAccess
  • Revision title: MIDIAccess
  • Revision id: 902025
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{SeeCompatTable}}{{Non-standard_header()}}{{APIRef("Web MIDI API")}} 

The MIDIAccess interface of the Web MIDI API provides methods for listing MIDI input and output devices, and obtaining access to those devices.

Properties

{{domxref("MIDIAccess.inputs")}} {{readonlyinline}}
Returns an instance of {{domxref("MIDIInputMap")}} which provides access to any available MIDI input ports.
{{domxref("MIDIAccess.outputs")}} {{readonlyinline}}
Returns an instance of {{domxref("MIDIOutputMap")}} which provides access to any available MIDI output ports.
{{domxref("MIDIAccess.sysexEnabled")}} {{readonlyinline}}
A boolean attribute indicating whether system exclusive support is enabled on the current MIDIAccess instance.

Event Handlers

{{domxref("MIDIAccess.onstatechange")}}
Called whenever a new MIDI port is added or an existing port changes state.

Examples

 

Specifications

Specification Status Comment
{{SpecName('WebMIDI API','#midiaccess-interface')}} {{Spec2('WebMIDI API')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatChrome(43.0)}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support {{CompatNo}} {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatNo}}

 

Revision Source

<p>{{SeeCompatTable}}{{Non-standard_header()}}{{APIRef("Web MIDI API")}}&nbsp;</p>

<p>The <strong><code>MIDIAccess</code></strong> interface of the <a href="/en-US/docs/Web/API/Web_MIDI_API">Web MIDI API</a>&nbsp;provides methods for listing MIDI input and output devices, and obtaining access to those devices.</p>

<h2 id="Properties">Properties</h2>

<dl>
 <dt>{{domxref("MIDIAccess.inputs")}} {{readonlyinline}}</dt>
 <dd>Returns an instance of {{domxref("MIDIInputMap")}} which provides access to any available&nbsp;MIDI input ports.</dd>
 <dt>{{domxref("MIDIAccess.outputs")}} {{readonlyinline}}</dt>
 <dd>Returns an instance of {{domxref("MIDIOutputMap")}} which provides access to any available MIDI output ports.</dd>
 <dt>{{domxref("MIDIAccess.sysexEnabled")}} {{readonlyinline}}</dt>
 <dd>A boolean attribute indicating whether system exclusive support is enabled on the current MIDIAccess instance.</dd>
</dl>

<h3 id="Event_Handlers">Event Handlers</h3>

<dl>
 <dt>{{domxref("MIDIAccess.onstatechange")}}</dt>
 <dd>Called whenever a new MIDI port is added or an existing port changes state.</dd>
</dl>

<h2 id="Examples">Examples</h2>

<p>&nbsp;</p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('WebMIDI API','#midiaccess-interface')}}</td>
   <td>{{Spec2('WebMIDI API')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatChrome(43.0)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Android Webview</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="sect1">&nbsp;</h2>
Revert to this revision