Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Aftertouch

Represents an Aftertouch

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Aftertouch(key?: number, amount?: number, channel?: number): Aftertouch
  • Creates an after-touch object with the specified values.

    Parameters

    • Optional key: number

      The key for this aftertouch message, defaults to 0.

    • Optional amount: number

      The amount for this aftertouch message, defaults to 0.

    • Optional channel: number

      The channel for this aftertouch message, defaults to 1.

    Returns Aftertouch

Properties

amount

amount: number | 0

The amount for this after-touch

channel

channel: number | 1

The channel for this MIDI message.

Optional id

id: ObjectID | undefined

The identifier of this object.

key

key: number | 0

The key for this after-touch

Methods

withAmount

  • Returns a new Aftertouch which has the same key and channel as this one, but with a different amount.

    Parameters

    • amount: number

    Returns Aftertouch

withChannel

  • Returns a new Aftertouch which has the same key and amount as this one, but with a different channel.

    Parameters

    • channel: number

    Returns Aftertouch

withKey

  • Returns a new Aftertouch which has the same amount and channel as this one, but with a different key.

    Parameters

    • key: number

    Returns Aftertouch

Generated using TypeDoc