Skip to main content

alphaTab.midi.MidiEvent

Represents a midi event.

 abstract class MidiEvent

Properties​

command​

(no description)

readonly command: MidiEventType;

data1​

The first data byte. Meaning depends on midi event type. (Deprecated since 1.3.0, use the specific properties of the midi event depending on type)

readonly data1: number;

data2​

The second data byte Meaning depends on midi event type. (Deprecated since 1.3.0, use the specific properties of the midi event depending on type)

readonly data2: number;

message​

The 32-bit encoded raw midi message. Deprecated since 1.3.0. Use the properties of the subclasses instead.

readonly message: number;

tick​

Gets or sets the absolute tick of this midi event.

tick: number;

track​

Gets or sets the track to which the midi event belongs.

track: number;

type​

Gets or sets the midi command (type) of this event.

Methods​

writeTo​

Writes the midi event as binary into the given stream.

abstract writeTo(s: IWriteable): void
ParameterSummary
sAll

The stream to write to.