Nuestros voluntarios aún no han traducido este artículo al Español. ¡Únete a nosotros y ayúdanos a traducirlo!
También puedes leer el artículo en English (US).

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.


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


MIDIAccess.inputs Read only
Returns an instance of MIDIInputMap which provides access to any available MIDI input ports.
MIDIAccess.outputs Read only
Returns an instance of MIDIOutputMap which provides access to any available MIDI output ports.
MIDIAccess.sysexEnabled Read only
A boolean attribute indicating whether system exclusive support is enabled on the current MIDIAccess instance.

Event Handlers

Called whenever a new MIDI port is added or an existing port changes state.


  .then(function(access) {

     // Get lists of available MIDI controllers
     const inputs = access.inputs.values();
     const outputs = access.outputs.values();

     access.onstatechange = function(e) {

       // Print information about the (dis)connected MIDI controller
       console.log(, e.port.manufacturer, e.port.state);


Specification Status Comment
Web MIDI API Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Chrome Full support 43Edge ? Firefox No support NoIE No support NoOpera Full support 33Safari No support NoWebView Android Full support 43Chrome Android Full support 43Edge Mobile ? Firefox Android ? Opera Android Full support 33Safari iOS No support NoSamsung Internet Android Full support 4.0


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

Etiquetas y colaboradores del documento

Colaboradores en esta página: mdnwebdocs-bot, fscholz, mutuware, pioug, cwilso, teoli, hanwujueqi, jpmedley, Jeremie
Última actualización por: mdnwebdocs-bot,