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 813897 of MIDIInput

  • Revision slug: Web/API/MIDIInput
  • Revision title: MIDIInput
  • Revision id: 813897
  • Created:
  • Creator: jpmedley
  • Is current revision? No
  • Comment

Revision Content

{{SeeCompatTable}}{{APIRef("Web MIDI API")}}

The MIDIInput interface of the Web MIDI API provides access to a MIDI input port and the messages passed on it.  

Properties

None.

Event Handlers

{{domxref("MIDIInput.onmidimessage")}}
Called whenever a {{domxref("MIDIMessage")}} is recieved by the current port.

Examples

 

Specifications

Specification Status Comment
{{SpecName('WebMIDI API','#midiinput-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}}{{APIRef("Web MIDI API")}}</p>

<p>The <strong><code>MIDIInput</code></strong>&nbsp;interface of the <a href="/en-US/docs/Web/API/Web_MIDI_API">Web MIDI API</a>&nbsp;provides access to a MIDI input port and the messages passed on it. &nbsp;</p>

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

<p>None.</p>

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

<dl>
 <dt>{{domxref("MIDIInput.onmidimessage")}}</dt>
 <dd>Called whenever a {{domxref("MIDIMessage")}} is recieved by the current port.</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','#midiinput-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>
Revert to this revision