alphaTab.midi.MidiEvent
Represents a midi event.
abstract class MidiEventProperties​
command​
(no description)
- JavaScript
- C#
- Kotlin
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)
- JavaScript
- C#
- Kotlin
readonly data1: number;double Data1 { get; }val data1: Doubledata2​
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)
- JavaScript
- C#
- Kotlin
readonly data2: number;double Data2 { get; }val data2: Doublemessage​
The 32-bit encoded raw midi message. Deprecated since 1.3.0. Use the properties of the subclasses instead.
- JavaScript
- C#
- Kotlin
readonly message: number;double Message { get; }val message: Doubletick​
Gets or sets the absolute tick of this midi event.
- JavaScript
- C#
- Kotlin
tick: number;double Tick { get; set; }var tick: Doubletrack​
Gets or sets the track to which the midi event belongs.
- JavaScript
- C#
- Kotlin
track: number;double Track { get; set; }var track: Doubletype​
Gets or sets the midi command (type) of this event.
- JavaScript
- C#
- Kotlin
Methods​
writeTo​
Writes the midi event as binary into the given stream.
- JavaScript
- C#
- Kotlin
abstract writeTo(s: IWriteable): voidabstract void WriteTo(IWriteable s)fun writeTo(s: IWriteable): Unit| Parameter | Summary |
|---|---|
sAll | The stream to write to. |