Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MIDIValOutput

Hierarchy

  • MIDIValOutput

Index

Constructors

Methods

  • send(msgs: number[] | Uint8Array): void
  • Sends raw message to MIDI out

    Parameters

    • msgs: number[] | Uint8Array

      Message as an array of UInt8 values

    Returns void

  • sendAllNotesOff(channel?: number): void
  • sendAllSoundOff(channel?: number): void
  • sendChannelPressure(velocity: number, channel?: number): void
  • sendClockContinue(): void
  • sendClockPulse(): void
  • sendClockStart(): void
  • sendClockStop(): void
  • sendControlChange(controller: number, value: number, channel?: number): void
  • sendLocalControlOff(channel?: number): void
  • sendLocalControlOn(channel?: number): void
  • sendNoteOff(note: number, channel?: number): void
  • Sends note off message.

    Parameters

    • note: number

      Note key to be set off

    • Optional channel: number

      Channel. By default will use channel set by setChannel method

    Returns void

  • sendNoteOn(note: number, velocity: number, channel?: number): void
  • Sends note on message

    Parameters

    • note: number

      Note key value to be sent.

    • velocity: number

      Velocity - number between 0 and 128

    • Optional channel: number

      Channel. By default will use channel set by setChannel method

    Returns void

  • sendPitchBend(bendValue: number, channel?: number): void
  • Sends pitch bend value.

    throws

    Throws exception if bendValue is outside the range.

    Parameters

    • bendValue: number

      Ben value ranging from -1.0 to 1.0.

    • Optional channel: number

      Optional channel on which bend should be sent on

    Returns void

  • sendPolyKeyPressure(key: number, velocity: number, channel?: number): void
  • sendProgramChange(program: number, channel?: number): void
  • sendResetAllControllers(channel?: number): void
  • setChannel(channel: number): void
  • Changes default channel the messages are sent on

    Parameters

    • channel: number

      Channel value. Integer between 1 and 16

    Returns void

  • Creates MIDIValOutput based on the interface name

    Parameters

    • interfaceName: string

      Name of the interface

    Returns Promise<MIDIValOutput>

    MIDIValOutput object

Generated using TypeDoc