requestMIDIAccessAsync

fun requestMIDIAccessAsync(options: MIDIOptions = definedExternally): Promise<MIDIAccess>(source)

The requestMIDIAccess() method of the Navigator interface returns a Promise representing a request for access to MIDI devices on a user's system. Available only in secure contexts.

MDN Reference