Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Controller

Represents a Controller.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Controller(number?: number, value?: number, channel?: number): Controller
  • Creates a controller object with the specified values.

    Parameters

    • Optional number: number

      The controller number for this controller message, defaults to 1.

    • Optional value: number

      The value for this controller message, defaults to 0.

    • Optional channel: number

      The channel for this channel pressure message, defaults to 1.

    Returns Controller

Properties

channel

channel: number | 1

The channel for this MIDI message.

Optional id

id: ObjectID | undefined

The identifier of this object.

number

number: number | 1

The number for this controller.

value

value: number | 0

The value for this controller.

Methods

withChannel

  • Returns a new Controller which has the same number and value as this one, but with a different channel.

    Parameters

    • channel: number

    Returns Controller

withNumber

  • Returns a new Controller which has the same number and channel as this one, but with a different number.

    Parameters

    • number: number

    Returns Controller

withValue

  • Returns a new Controller which has the same number and channel as this one, but with a different value.

    Parameters

    • value: number

    Returns Controller

Generated using TypeDoc