webmidi library Null safety

Web MIDI API

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

Classes

MIDIAccess
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the Web MIDI API provides methods for listing MIDI input and output devices, and obtaining access to those devices.
MIDIConnectionEvent
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. 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 MIDIPort 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
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the Web MIDI API receives messages from a MIDI input port.
MIDIInputMap
Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The read-only interface of the Web MIDI API provides a Map-like interface to the currently available MIDI input ports. Though it works generally like a map, because it is read-only it does not contain clear(), delete(), or set() functions.
MIDIMessageEvent
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. 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 context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the Web MIDI API provides methods to add messages to the queue of an output device, and to clear the queue of messages.
MIDIOutputMap
Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The read-only interface of the Web MIDI API provides a Map-like interface to the currently available MIDI output ports. Although it works like a map, because it is read-only, it does not contain clear(), delete(), or set() functions.
MidiPermissionDescriptor
MIDIPort
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the Web MIDI API represents a MIDI input or output port. A instance is created when a new MIDI device is connected. Therefore it has no constructor.

Extensions

PropsMIDIAccess
PropsMIDIConnectionEvent
PropsMIDIConnectionEventInit
PropsMIDIInput
PropsMIDIMessageEvent
PropsMIDIMessageEventInit
PropsMIDIOptions
PropsMIDIOutput
PropsMidiPermissionDescriptor
PropsMIDIPort

Enums

MIDIPortConnectionState
MIDIPortDeviceState
MIDIPortType