Interface IMidiMessage

IMidiMessage defines an interface which all MIDI message objects should implement in order to be widely useable with the MIDI inputs/outputs that consume them.

Hierarchy

  • IMidiMessage

Implemented by

Accessors

Methods

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 duplicate method returns an exact copy of the MIDI message object on which it was called.

    Returns IMidiMessage

  • 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[]

Generated using TypeDoc