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: BooleannumberedConfigโ
Per-Staff override for the numbered (jianpu) staff's display.
- JavaScript
- C#
- Kotlin
numberedConfig?: NumberedStaffConfig;NumberedStaffConfig NumberedConfig { get; set; }var numberedConfig: NumberedStaffConfigscoreConfigโ
Per-Staff override for the standard-notation staff's display.
- JavaScript
- C#
- Kotlin
scoreConfig?: ScoreStaffConfig;ScoreStaffConfig ScoreConfig { get; set; }var scoreConfig: ScoreStaffConfigshowNumberedโ
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: BooleanslashConfigโ
Per-Staff override for the slash staff's display.
- JavaScript
- C#
- Kotlin
slashConfig?: SlashStaffConfig;SlashStaffConfig SlashConfig { get; set; }var slashConfig: SlashStaffConfigstandardNotationLineCountโ
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.
tabConfigโ
Per-Staff override for the tablature staff's display.
- JavaScript
- C#
- Kotlin
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) |