alphaTab.model.Track
This public class describes a single track or instrument of score. It is primarily a list of staves containing individual music notation kinds.
class TrackPropertiesโ
colorโ
Gets or sets the display color defined for this track.
defaultSystemsLayoutโ
Defines how many bars are placed into the systems (rows) when displaying the track unless a value is set in the systemsLayout.
- JavaScript
- C#
- Kotlin
defaultSystemsLayout: number;double DefaultSystemsLayout { get; set; }var defaultSystemsLayout: Doubleindexโ
Gets or sets the zero-based index of this track.
- JavaScript
- C#
- Kotlin
index: number;double Index { get; set; }var index: DoubleisPercussionโ
Gets whether this track is a percussion track.
- JavaScript
- C#
- Kotlin
readonly isPercussion: boolean;bool IsPercussion { get; }val isPercussion: BooleanisVisibleOnMultiTrackโ
Gets or sets whether this track should be visible in the UI. This information is purely informational and might not be provided by all input formats. In formats like Guitar Pro this flag indicates whether on the default "multi-track" layout tracks should be visible or not.
- JavaScript
- C#
- Kotlin
isVisibleOnMultiTrack: boolean;bool IsVisibleOnMultiTrack { get; set; }var isVisibleOnMultiTrack: BooleanlineBreaksโ
Defines on which bars specifically a line break is forced.
- JavaScript
- C#
- Kotlin
lineBreaks?: Set<number>;Set<double> LineBreaks { get; set; }var lineBreaks: Set<Double>nameโ
Gets or sets the long name of this track.
- JavaScript
- C#
- Kotlin
name: string;string Name { get; set; }var name: StringpercussionArticulationsโ
Gets or sets a mapping on which staff lines particular percussion instruments should be shown.
- JavaScript
- C#
- Kotlin
percussionArticulations: InstrumentArticulation[];IList<InstrumentArticulation> PercussionArticulations { get; set; }var percussionArticulations: alphaTab.collections.List<InstrumentArticulation>playbackInfoโ
Gets or sets the playback information for this track.
- JavaScript
- C#
- Kotlin
playbackInfo: PlaybackInformation;PlaybackInformation PlaybackInfo { get; set; }var playbackInfo: PlaybackInformationscoreโ
Gets or sets the reference this track belongs to.
shortNameโ
Gets or sets the short name of this track.
- JavaScript
- C#
- Kotlin
shortName: string;string ShortName { get; set; }var shortName: Stringstavesโ
Gets or sets the list of staves that are defined for this track.
styleโ
The style customizations for this item.
- JavaScript
- C#
- Kotlin
systemsLayoutโ
Defines how many bars are placed into the systems (rows) when displaying the track.
- JavaScript
- C#
- Kotlin
systemsLayout: number[];IList<double> SystemsLayout { get; set; }var systemsLayout: alphaTab.collections.DoubleListMethodsโ
addLineBreaksโ
Adds a new line break.
- JavaScript
- C#
- Kotlin
addLineBreaks(index: number): voidvoid AddLineBreaks(double index)fun addLineBreaks(index: Double): Unit| Parameter | Summary |
|---|---|
indexAll | The index of the bar before which a line break should happen. |
addStaffโ
(no description)
| Parameter | Summary |
|---|---|
staffAll | (no description) |
applyLyricsโ
(no description)
| Parameter | Summary |
|---|---|
lyricsAll | (no description) |
ensureStaveCountโ
(no description)
- JavaScript
- C#
- Kotlin
ensureStaveCount(staveCount: number): voidvoid EnsureStaveCount(double staveCount)fun ensureStaveCount(staveCount: Double): Unit| Parameter | Summary |
|---|---|
staveCountAll | (no description) |
finishโ
(no description)
| Parameter | Summary |
|---|---|
settingsAll | (no description) |
sharedDataBagAll | (no description) |
getOrRegisterPercussionArticulationโ
Returns the index of articulation in percussionArticulations ,
appending it (deduplicated by uniqueId) when not yet present. Callers store the
returned index in percussionArticulation .
- JavaScript
- C#
- Kotlin
getOrRegisterPercussionArticulation(articulation: InstrumentArticulation): numberdouble GetOrRegisterPercussionArticulation(InstrumentArticulation articulation)fun getOrRegisterPercussionArticulation(articulation: InstrumentArticulation): Double| Parameter | Summary |
|---|---|
articulationAll | (no description) |