web api instance property
MIDIAccess: inputs property
Secure context
The inputs read-only property of the MIDIAccess interface provides access to any available MIDI input ports.
Value
A MIDIInputMap instance.
Examples
The requestMIDIAccess() method returns a promise that resolves with a MIDIAccess object. Printing the value of inputs to the console returns a MIDIInputMap.
navigator.requestMIDIAccess().then((access) => {
console.log(access.inputs);
});
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.