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) |