Please use the MidiAccess.request()
method instead.
The portChanged event dispatches an event whenever a new port is added, or an existing port is removed/modified.
Returns the name of this type. This can be used rather than instanceof which is sometimes unreliable.
Static
requestCalling this static method is the recommended way to get new instances of this class. It waits for the MIDI access request to be confirmed before returning a new MidiAccess instance.
Generated using TypeDoc
The MidiAccess class provides an interface for fetching MIDI ports which data can be sent to, or received from.
The recommended way to get a new instance of this class is through the asynchronous
request()
method.Example: