Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChannelPressure

Represents a ChannelPressure

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ChannelPressure(pressure?: number, channel?: number): ChannelPressure
  • Creates a channel pressure object with the specified values.

    Parameters

    • Optional pressure: number

      The pressure value for this channel pressure message, defaults to 0.

    • Optional channel: number

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

    Returns ChannelPressure

Properties

channel

channel: number | 1

The channel for this MIDI message.

Optional id

id: ObjectID | undefined

The identifier of this object.

pressure

pressure: number | 0

The pressure for this after-touch

Methods

withAmount

  • Returns a new ChannelPressure which has the same channel as this one, but with a different pressure.

    Parameters

    • pressure: number

    Returns ChannelPressure

withChannel

  • Returns a new ChannelPressure which has the same pressure as this one, but with a different channel.

    Parameters

    • channel: number

    Returns ChannelPressure

Generated using TypeDoc