alphaTab.midi.MasterBarTickLookup
Represents the time period, for which all bars of a MasterBar are played.
class MasterBarTickLookupProperties​
end​
Gets or sets the end time in midi ticks at which the MasterBar is played.
- JavaScript
- C#
- Kotlin
end: number;double End { get; set; }var end: DoublefirstBeat​
The first beat in the bar.
- JavaScript
- C#
- Kotlin
firstBeat: BeatTickLookup | null;BeatTickLookup? FirstBeat { get; set; }var firstBeat: BeatTickLookup?lastBeat​
The last beat in the bar.
- JavaScript
- C#
- Kotlin
masterBar​
Gets or sets the MasterBar which is played.
nextMasterBar​
Gets or sets the MasterBarTickLookup of the next masterbar in the Score
- JavaScript
- C#
- Kotlin
nextMasterBar: MasterBarTickLookup | null;MasterBarTickLookup? NextMasterBar { get; set; }var nextMasterBar: MasterBarTickLookup?previousMasterBar​
Gets or sets the MasterBarTickLookup of the previous masterbar in the Score
- JavaScript
- C#
- Kotlin
previousMasterBar: MasterBarTickLookup | null;MasterBarTickLookup? PreviousMasterBar { get; set; }var previousMasterBar: MasterBarTickLookup?start​
Gets or sets the start time in midi ticks at which the MasterBar is played.
- JavaScript
- C#
- Kotlin
start: number;double Start { get; set; }var start: Doubletempo​
Gets or sets the current tempo when the MasterBar is played.
- JavaScript
- C#
- Kotlin
readonly tempo: number;double Tempo { get; }val tempo: DoubletempoChanges​
Gets the list of tempo changes within the tick lookup.
- JavaScript
- C#
- Kotlin
readonly tempoChanges: MasterBarTickLookupTempoChange[];IList<MasterBarTickLookupTempoChange> TempoChanges { get; }val tempoChanges: alphaTab.collections.List<MasterBarTickLookupTempoChange>Methods​
addBeat​
Adds a new beat to this masterbar following the slicing logic required by the MidiTickLookup.
- JavaScript
- C#
- Kotlin
| Parameter | Summary |
|---|---|
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.