Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MidiKeyboardState

Represents a piano keyboard.

Hierarchy

Index

Properties

Methods

Properties

Optional id

id: ObjectID | undefined

The identifier of this object.

Methods

allNotesOff

  • allNotesOff(channel: number): void
  • Turns off any currently-down notes for the specified midi channel. If you pass 0 for the midi channel, it will turn off all notes on all channels.

    Parameters

    • channel: number

    Returns void

isNoteOn

  • isNoteOn(note: number, channel?: number): boolean
  • Returns true if the specified key is currently held down for the specified channel.

    Parameters

    • note: number
    • Optional channel: number

    Returns boolean

noteOff

  • noteOff(note: Note): void
  • Turns the specified note off.

    Parameters

    Returns void

noteOn

  • noteOn(note: Note): void
  • Turns the specified note on.

    Parameters

    Returns void

Generated using TypeDoc