Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MIDIValInput

Hierarchy

  • MIDIValInput

Index

Constructors

Accessors

  • get tempo(): number
  • Current MIDI Clock tempo

    throws

    MIDIValConfigurationError when computeClockTempo is not on.

    Returns number

    current tempo in BPM.

Methods

  • disconnect(): void
  • Registers new callback on pitch bend message

    Parameters

    • callback: Callback<[number]>

      Callback that gets called on every pitch bend message. It gets value of the bend in the range of -1.0 to 1.0 using 16-bit precision (if supported by sending device).

    Returns UnregisterCallback

    Unregister callback.

  • Returns new MIDIValInput object based on the interface id.

    throws

    MIDIValError when interface id is not found.

    Parameters

    • interfaceId: string

      id of the interface from the MIDIAcces object.

    • Optional options: MIDIValInputOptions

    Returns Promise<MIDIValInput>

    Promise resolving to MIDIValInput.

  • Finds first interface matching the name

    throws

    MIDIValError when no interface with that name is found

    Parameters

    • interfaceName: string

      interface Name

    • Optional options: MIDIValInputOptions

      input configuration options

    Returns Promise<MIDIValInput>

    MIDIValInput object

Generated using TypeDoc