alphaTab.model.Staff
This class describes a single staff within a track. There are instruments like pianos where a single track can contain multiple staves.
class StaffProperties​
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.
- JavaScript
- C#
- Kotlin
capo: number;double Capo { get; set; }var capo: Doublechords​
Gets or sets a list of all chords defined for this staff. chordId refers to entries in this lookup.
DefaultStandardNotationLineCount​
(no description)
- JavaScript
- C#
- Kotlin
static readonly DefaultStandardNotationLineCount: unknown;static Unknown DefaultStandardNotationLineCount { get; }companion object { val DefaultStandardNotationLineCount: unknown }displayTranspositionPitch​
Gets or sets the number of semitones this track should be transposed. This applies only to rendering.
- JavaScript
- C#
- Kotlin
displayTranspositionPitch: number;double DisplayTranspositionPitch { get; set; }var displayTranspositionPitch: DoublefilledVoices​
The indexes of the non-empty voices in this staff..
- JavaScript
- C#
- Kotlin
readonly filledVoices: Set<number>;Set<double> FilledVoices { get; }val filledVoices: Set<Double>index​
Gets or sets the zero-based index of this staff within the track.
- JavaScript
- C#
- Kotlin
index: number;double Index { get; set; }var index: DoubleisPercussion​
Gets or sets whether the staff contains percussion notation
- JavaScript
- C#
- Kotlin
isPercussion: boolean;bool IsPercussion { get; set; }var isPercussion: BooleanisStringed​
(no description)
- JavaScript
- C#
- Kotlin
readonly isStringed: boolean;bool IsStringed { get; }val isStringed: BooleanshowNumbered​
Gets or sets whether the numbered notation is shown.
- JavaScript
- C#
- Kotlin
showNumbered: boolean;bool ShowNumbered { get; set; }var showNumbered: BooleanshowSlash​
Gets or sets whether the slash notation is shown.
- JavaScript
- C#
- Kotlin
showSlash: boolean;bool ShowSlash { get; set; }var showSlash: BooleanshowStandardNotation​
Gets or sets whether the standard notation is shown.
- JavaScript
- C#
- Kotlin
showStandardNotation: boolean;bool ShowStandardNotation { get; set; }var showStandardNotation: BooleanshowTablature​
Gets or sets whether the tabs are shown.
- JavaScript
- C#
- Kotlin
showTablature: boolean;bool ShowTablature { get; set; }var showTablature: BooleanstandardNotationLineCount​
The number of lines shown for the standard notation. For some percussion instruments this number might vary.
- JavaScript
- C#
- Kotlin
standardNotationLineCount: number;double StandardNotationLineCount { get; set; }var standardNotationLineCount: DoublestringTuning​
Get or set the guitar tuning of the guitar. This tuning also indicates the number of strings shown in the
guitar tablature. Unlike the string property this array directly represents
the order of the tracks shown in the tablature. The first item is the most top tablature line.
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 transposed. This applies to rendering and playback.
- JavaScript
- C#
- Kotlin
transpositionPitch: number;double TranspositionPitch { get; set; }var transpositionPitch: Doubletuning​
Get or set the values of the related guitar tuning.
- JavaScript
- C#
- Kotlin
tuningName​
Gets or sets the name of the tuning.
- JavaScript
- C#
- Kotlin
readonly tuningName: string;string TuningName { get; }val tuningName: StringMethods​
addBar​
(no description)
| Parameter | Summary |
|---|---|
barAll | (no description) |
addChord​
(no description)
| Parameter | Summary |
|---|---|
chordIdAll | (no description) |
chordAll | (no description) |
finish​
(no description)
| Parameter | Summary |
|---|---|
settingsAll | (no description) |
sharedDataBagAll | (no description) |
getChord​
(no description)
| Parameter | Summary |
|---|---|
chordIdAll | (no description) |
hasChord​
(no description)
- JavaScript
- C#
- Kotlin
hasChord(chordId: string): booleanbool HasChord(string chordId)fun hasChord(chordId: String): Boolean| Parameter | Summary |
|---|---|
chordIdAll | (no description) |