Skip to main content

alphaTab.midi.AlphaTabMetronomeEvent

Represents a metronome event. alphaTab places these events bar by bar into the midi files generated for playback (respecting repeats, time signatures and pick-up bars). They are not written into standard midi files (SMF1 mode). For midi files without these events the synthesizer generates them during playback according to the time signatures.

 class AlphaTabMetronomeEvent extends AlphaTabSysExEvent

Properties​

AlphaTabManufacturerId​

(no description) (Inherited from AlphaTabSysExEvent )

static readonly AlphaTabManufacturerId: unknown;

command​

(no description) (Inherited from MidiEvent )

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) (Inherited from MidiEvent )

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) (Inherited from MidiEvent )

readonly data2: number;

isMetronome​

Gets a value indicating whether the current event is a metronome event.

readonly isMetronome: boolean;

message​

The 32-bit encoded raw midi message. Deprecated since 1.3.0. Use the properties of the subclasses instead. (Inherited from MidiEvent )

readonly message: number;

metronomeDurationInMilliseconds​

The duration of the metronome tick in milliseconds.

metronomeDurationInMilliseconds: number;

metronomeDurationInTicks​

The duration of the metronome tick in MIDI ticks.

metronomeDurationInTicks: number;

MetronomeEventId​

(no description) (Inherited from AlphaTabSysExEvent )

static readonly MetronomeEventId: unknown;

metronomeNumerator​

The metronome counter as per current time signature.

metronomeNumerator: number;

RestEventId​

(no description) (Inherited from AlphaTabSysExEvent )

static readonly RestEventId: unknown;

tick​

Gets or sets the absolute tick of this midi event. (Inherited from MidiEvent )

tick: number;

track​

Gets or sets the track to which the midi event belongs. (Inherited from MidiEvent )

track: number;

type​

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

Methods​

writeTo​

(no description) (Inherited from AlphaTabSysExEvent )

writeTo(s: IWriteable): void
ParameterSummary
sAll

(no description)