@nextcloud/dialogs
    Preparing search index...

    Interface MIDIAccess

    The MIDIAccess interface of the Web MIDI API provides methods for listing MIDI input and output devices, and obtaining access to those devices. Available only in secure contexts.

    MDN Reference

    interface MIDIAccess {
        inputs: MIDIInputMap;
        onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null;
        outputs: MIDIOutputMap;
        sysexEnabled: boolean;
        addEventListener<K extends "statechange">(
            type: K,
            listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any,
            options?: boolean | AddEventListenerOptions,
        ): void;
        addEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | AddEventListenerOptions,
        ): void;
        dispatchEvent(event: Event): boolean;
        removeEventListener<K extends "statechange">(
            type: K,
            listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any,
            options?: boolean | EventListenerOptions,
        ): void;
        removeEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | EventListenerOptions,
        ): void;
    }

    Hierarchy (View Summary)

    Index
    inputs: MIDIInputMap

    The inputs read-only property of the MIDIAccess interface provides access to any available MIDI input ports.

    MDN Reference

    onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null
    outputs: MIDIOutputMap

    The outputs read-only property of the MIDIAccess interface provides access to any available MIDI output ports.

    MDN Reference

    sysexEnabled: boolean

    The sysexEnabled read-only property of the MIDIAccess interface indicates whether system exclusive support is enabled on the current MIDIAccess instance.

    MDN Reference

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      Returns boolean