Static configureImplementation of IMIDIAccess to be used to provide MIDI objects.
Static connectConnects to MIDI interface and returns implementation of IMIDIAccess
Promise resolving to IMIDIAccess
Static fromMIDIInputCreates MIDIValInput instance from implementation of IMIDIInput interface.
Implementation of IMIDIInput interface
MIDIValInput object
Static fromMIDIOutputCreates MIDIValOutput instance from implementation of IMIDIOut interface
Implementation of IMIDIOutput interface
MIDIValOutput object
Static onCalls callback on every input device that gets connected.
Callback to be registered
If set to true, the function will instantly trigger for all already connected devices. Default to false
Promise resolving to unregister callback when finishes.
Static onRegusters callback on an event of input device being disconnected.
Callback to be called.
promise resolving to unregister callback
Static onListens to all input devices with a certain config (like name or manufacturer). Configuration can be provided as a string or regex. The callback unlike onInputDeviceConnected accepts MIDIValInput. onInputDeviceConnected is suitable when you want to filter devices yourself, beyond this configuration object so it does not instantiate objects.
Configuration object used to match with device connected
Callback on connection. Connection is already wrapped in MIDIValInput object
Promise for Unregister Callback
Static onCalls callback on every output device that gets connected.
Callback to be registered
If set to true, the function will instantly trigger for all already connected devices. Default to false
Promise resolving to unregister callback when finishes.
Static onRegusters callback on an event of input device being disconnected.
Callback to be called.
promise resolving to unregister callback
Static onListens to all output devices with a certain config (like name or manufacturer). Configuration can be provided as a string or regex. The callback unlike onOutputDeviceConnected accepts MIDIValOutput. onOutputDeviceConnected is suitable when you want to filter devices yourself, beyond this configuration object so it does not instantiate objects.
Configuration object used to match with device connected
Callback on connection. Connection is already wrapped in MIDIValOutput object
Promise for Unregister Callback
Generated using TypeDoc
Allows to reconfigure access object to use project in different environment as the default one (browser): See @midival/node, @midival/react-native for more details.