Skip to main content

Interface: MidiAccessLike

Defined in: src/audio/MidiInput.ts:90

The subset of a MIDIAccess the driver uses: the input ports and an optional device-change hook. The real MIDIAccess is adapted onto this shape, and tests inject a fake that implements it directly.

Properties​

inputs​

readonly inputs: Iterable<MidiInputLike>

Defined in: src/audio/MidiInput.ts:92

The available MIDI input ports.


onstatechange()?​

optional onstatechange: () => void

Defined in: src/audio/MidiInput.ts:94

Handler invoked when a device connects or disconnects, or null.

Returns​

void