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

Documentation MIDIAccess by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

read onlyinputs:MIDIInputMap

Returns an instance of MIDIInputMap which provides access to any available MIDI input ports.

onstatechange:Function

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

read onlyoutputs:MIDIOutputMap

Returns an instance of MIDIOutputMap which provides access to any available MIDI output ports.

read onlysysexEnabled:Bool

A boolean attribute indicating whether system exclusive support is enabled on the current MIDIAccess instance.

Inherited Variables

Inherited Methods

Defined by EventTarget

addEventListener(type:String, listener:Function, ?options:EitherType<AddEventListenerOptions, Bool>, ?wantsUntrusted:Bool):Void

addEventListener(type:String, listener:EventListener, ?options:EitherType<AddEventListenerOptions, Bool>, ?wantsUntrusted:Bool):Void

Register an event handler of a specific event type on the EventTarget.

Throws:

null

DOMError

dispatchEvent(event:Event):Bool

Dispatch an event to this EventTarget.

Throws:

null

DOMError

removeEventListener(type:String, listener:Function, ?options:EitherType<EventListenerOptions, Bool>):Void

removeEventListener(type:String, listener:EventListener, ?options:EitherType<EventListenerOptions, Bool>):Void

Removes an event listener from the EventTarget.

Throws:

null

DOMError