Parameters
- params: {
options?: MIDIOptions;
errorCallback?(error: Error): void;
successCallback?(midiAccess: MIDIAccess, midiInputs: MIDIInput[], midiOutputs: MIDIOutput[]): void;
}Optional
options?: MIDIOptions
errorCallback?:function
- errorCallback(error): void
Returns void
successCallback?:function
- successCallback(midiAccess, midiInputs, midiOutputs): void
Parameters
- midiAccess: MIDIAccess
- midiInputs: MIDIInput[]
- midiOutputs: MIDIOutput[]
Returns void
Returns Promise<void | MIDIAccess>
Return value is Promise
that requestMIDIAccess
method returns.
This class is for using Web MIDI API.