Class PitchBendMessage

The PitchBendMessage class represents a Pitch Bend MIDI message that can be sent to a MIDI output.

Hierarchy

  • MidiMessageBase

    Hierarchy

    • PitchBendMessage

Implements

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • percent: number

      Acceptable values range from -1 to +1, with 0 being no bend.

    • channel: number

      Acceptable values range from 0 to 15.

    Returns PitchBendMessage

Properties

channel: number

Acceptable values range from 0 to 15.

percent: number

Acceptable values range from -1 to +1, with 0 being no bend.

Accessors

  • get typeName(): string
  • Returns the name of this type. This can be used rather than instanceof which is sometimes unreliable.

    Returns string

Methods

  • The toArray method converts a MIDI message object into it's byte-array form which can be sent through a MIDI port to a connected piece of MIDI technology.

    Returns number[]

  • Takes in the LSB & MSB values of the pitch bend MIDI message and returns a number in range [-1, +1]

    Parameters

    • lsb: number
    • msb: number

    Returns number

Generated using TypeDoc