HuMIDI - v1.0.0
    Preparing search index...

    Class MIDIInput

    Represents a MIDI input device with enable/disable functionality.

    // Get all available inputs
    const inputs = HuMIDI.getInputs();

    // Disable a specific input
    const pianInput = inputs.find(input => input.name.includes('Piano'));
    pianInput?.disable();

    // Check if input is enabled
    if (pianInput?.isEnabled()) {
    console.log('Piano input is active');
    }
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    Accessors

    • get id(): string

      Unique identifier for this MIDI input device

      Returns string

    • get name(): string

      Human-readable name of this MIDI input device

      Returns string

    • get manufacturer(): string

      Manufacturer name of this MIDI input device

      Returns string

    • get state(): "connected" | "disconnected"

      Current connection state of this MIDI input device

      Returns "connected" | "disconnected"

    Methods

    • Enable this MIDI input device. When enabled, MIDI messages from this device will be processed and trigger events.

      Returns void

    • Disable this MIDI input device. When disabled, MIDI messages from this device will be ignored.

      Returns void

    • Check if this MIDI input device is currently enabled.

      Returns boolean

      True if the device is enabled, false otherwise