Skip to main content

alphaTab.model.MasterBar

Description

The MasterBar stores information about a bar which affects all tracks.

 class MasterBar

Properties

alternateEndings

Gets or sets the bitflag for the alternate endings. Each bit defines for which repeat counts

directions

The directions applied to this masterbar.

displayScale

Gets a percentual scale for the size of the bars when displayed in a multi-track layout.

displayWidth

An absolute width of the bar to use when displaying in a multi-track layout.

fermata

Gets or sets the fermatas for this bar. The key is the offset of the fermata in midi ticks.

index

Gets the zero based index of the masterbar.

isAnacrusis

Gets or sets a value indicating whether the master bar is an anacrusis (aka. pickup bar)

isDoubleBar

Gets or sets whether a double bar is shown for this masterbar.

isFreeTime

Gets or sets whether the bar indicates a free time playing.

isRepeatEnd
isRepeatStart

Gets or sets whether a repeat section starts on this masterbar.

isSectionStart
keySignature

Gets or sets the key signature used on all bars.

keySignatureType

Gets or sets the type of key signature (major/minor)

MaxAlternateEndings
nextMasterBar

Gets or sets the next masterbar in the song.

previousMasterBar

Gets or sets the next masterbar in the song.

repeatCount

Gets or sets the number of repeats for the current repeat section.

repeatGroup

Gets or sets the repeat group this bar belongs to.

score

Gets or sets the reference to the score this song belongs to.

section

Gets or sets the new section information for this bar.

start

The timeline position of the voice within the whole score. (unit: midi ticks)

tempoAutomation

Gets or sets the first tempo automation for this bar.

tempoAutomations

Gets or sets all tempo automation for this bar.

timeSignatureCommon

Gets or sets whether this is bar has a common time signature.

timeSignatureDenominator

Gets or sets the time signature denominiator.

timeSignatureNumerator

Gets or sets the time signature numerator.

tripletFeel

Gets or sets the triplet feel that is valid for this bar.

Methods

addDirection(Direction)

Adds a direction to the masterbar.

addFermata(number, Fermata)

Adds a fermata to the masterbar.

calculateDuration(boolean)

Calculates the time spent in this bar. (unit: midi ticks)

getFermata(Beat)

Gets the fermata for a given beat.