Hiyve Components - v1.0.0
    Preparing search index...

    Interface MidiCaptureOptions

    Options for MidiCapture.

    interface MidiCaptureOptions {
        inputId?: string;
        onError?: (error: Error) => void;
        onEvent?: (event: MidiEvent) => void;
        onInputsChanged?: (inputs: MidiInputInfo[]) => void;
    }
    Index

    Properties

    inputId?: string

    Capture from this input only; omit to capture from every connected input

    onError?: (error: Error) => void

    Called when MIDI access fails or a port cannot be opened

    onEvent?: (event: MidiEvent) => void

    Called for every recorded event, in arrival order

    onInputsChanged?: (inputs: MidiInputInfo[]) => void

    Called when a device appears or disappears during the take