webmidi library Null safety

Web MIDI API

https://webaudio.github.io/web-midi-api/

Classes

MIDIAccess
Experimental This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. [...]
MIDIConnectionEvent
Experimental This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The interface of the Web MIDI API is the event passed to the onstatechange event handler of the MIDIAccess interface and the onstatechange event of the MIDIPorts interface. This occurs any time a new port becomes available, or when a previously available port becomes unavailable. For example, this event is fired whenever a MIDI device is either plugged in to or unplugged from a computer.
MIDIConnectionEventInit
MIDIInput
Experimental This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. Use the interface of the Web MIDI API to access and pass messages to a MIDI input port.
MIDIInputMap
Draft This page is not complete. [...]
MIDIMessageEvent
Experimental This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The interface of the Web MIDI API represents the event passed to the onmidimessage event handler of the MIDIInput interface. A midimessage event is fired every time a MIDI message is sent from a device represented by a MIDIInput, for example when a MIDI keyboard key is pressed, a knob is tweaked, or a slider is moved.
MIDIMessageEventInit
MIDIOptions
MIDIOutput
Secure contextThis feature is available only in secure contexts (HTTPS), in some or all supporting browsers. [...]
MIDIOutputMap
Draft This page is not complete. [...]
MIDIPort
Secure contextThis feature is available only in secure contexts (HTTPS), in some or all supporting browsers. [...]

Enums

MIDIPortConnectionState
MIDIPortDeviceState
MIDIPortType