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

  • Revision slug: Web/API/MIDIInput
  • Revision title: MIDIInput
  • Revision id: 969809
  • Created:
  • Creator: rolfedh
  • Is current revision? Yes
  • Comment Minor edit. Use active voice. Move antecedent to the beginning of the phrase.

Revision Content

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

Use the MIDIInput interface of the Web MIDI API to access and pass messages to a MIDI input port.  

Properties

None.

Event Handlers

{{domxref("MIDIInput.onmidimessage")}}
When the current port receives a {{domxref("MIDIMessage")}} it triggers a call to this event handler.

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>{{APIRef("Web MIDI API")}}{{Non-standard_header()}}</p>

<p>Use 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;to access and pass messages to a MIDI input port. &nbsp;</p>

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

<p>None.</p>

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

<dl>
 <dt>{{domxref("MIDIInput.onmidimessage")}}</dt>
 <dd>When the current port receives a {{domxref("MIDIMessage")}} it triggers a call to this event handler.</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