Skip to main content

alphaTab.model.Staff

Description

This class describes a single staff within a track. There are instruments like pianos where a single track can contain multiple staves.

 class Staff

Properties

bars

Gets or sets a list of all bars contained in this staff.

capo

Gets or sets the fret on which a capo is set.

chords

Gets or sets a list of all chords defined for this staff. chordId refers to entries in this lookup.

DefaultStandardNotationLineCount
displayTranspositionPitch

Gets or sets the number of semitones this track should be

index

Gets or sets the zero-based index of this staff within the track.

isPercussion

Gets or sets whether the staff contains percussion notation

isStringed
showNumbered

Gets or sets whether the numbered notation is shown.

showSlash

Gets or sets whether the slash notation is shown.

showStandardNotation

Gets or sets whether the standard notation is shown.

showTablature

Gets or sets whether the tabs are shown.

standardNotationLineCount

The number of lines shown for the standard notation.

stringTuning

Get or set the guitar tuning of the guitar. This tuning also indicates the number of strings shown in the

track

Gets or sets the reference to the track this staff belongs to.

transpositionPitch

Gets or sets the number of semitones this track should be

tuning

Get or set the values of the related guitar tuning.

tuningName

Gets or sets the name of the tuning.

Methods

addBar(Bar)
addChord(string, Chord)
finish(Settings, Map<string, unknown> | null)
getChord(string)
hasChord(string)