Skip to main content

alphaTab.midi.MasterBarTickLookup

Represents the time period, for which all bars of a MasterBar are played.

 class MasterBarTickLookup

Properties​

end​

Gets or sets the end time in midi ticks at which the MasterBar is played.

end: number;

firstBeat​

The first beat in the bar.

firstBeat: BeatTickLookup | null;

lastBeat​

The last beat in the bar.

lastBeat: BeatTickLookup | null;

masterBar​

Gets or sets the MasterBar which is played.

masterBar: MasterBar;

nextMasterBar​

Gets or sets the MasterBarTickLookup of the next masterbar in the Score

nextMasterBar: MasterBarTickLookup | null;

previousMasterBar​

Gets or sets the MasterBarTickLookup of the previous masterbar in the Score

previousMasterBar: MasterBarTickLookup | null;

start​

Gets or sets the start time in midi ticks at which the MasterBar is played.

start: number;

tempo​

Gets or sets the current tempo when the MasterBar is played.

readonly tempo: number;

tempoChanges​

Gets the list of tempo changes within the tick lookup.

readonly tempoChanges: MasterBarTickLookupTempoChange[];

Methods​

addBeat​

Adds a new beat to this masterbar following the slicing logic required by the MidiTickLookup.

addBeat(beat: Beat, beatPlaybackStart: number, sliceStart: number, sliceDuration: number): void
ParameterSummary
beatAll

The beat to add to this masterbat

beatPlaybackStartAll

The original start of this beat. This time is relevant for highlighting.

sliceStartAll

The slice start to which this beat should be added. This time is relevant for creating new slices.

sliceDurationAll

The slice duration to which this beat should be added. This time is relevant for creating new slices.

Returns​

The first item of the chain which was affected.