requestMIDIAccess method
The requestMIDIAccess()
method of the Navigator interface returns
a Promise
representing a request for access to MIDI devices on a user's
system.
This method is part of the
Web MIDI API,
which provides a means for accessing, enumerating, and manipulating MIDI
devices.
This method may prompt the user for access to MIDI devices available to
their system, or it may use a previously established preference to grant
or deny access.
If permission is granted then the Promise
resolves and a
MIDIAccess
object is returned.
Implementation
external JSPromise<MIDIAccess> requestMIDIAccess([MIDIOptions options]);