Interface Message<T>

The MidiMessage interface is the base interface for all MIDI messages. It defines the common properties of all MIDI messages, the data associated with the message status.

The meta property allow to decorate the message with application specific data.

Type Parameters

Hierarchy

  • Message

Properties

channel?: number

The channel on which the message is sent, if the message is not a system message The minimum value is 1, the maximum value is 16

data?: DataTypes[T]

The actual data carried by the message Can be empty for some system messages (e.g. a real time messages)

meta?: Record<string, any>

The meta data associated with the message This can be used to store additional information about the message and implement custom logic when subscribing to the message stream.

offset?: number

The offset where the next message should be read

status: T

The MIDI status, identifying the type of the MIDI message

See

Status

Generated using TypeDoc