{{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}} |