Staff Class

Summary

This class describes a single staff within a track. There are instruments like pianos where a single track can contain multiple staffs.
Namespace
AlphaTab.Model
Base Types
  • object
graph TD Base0["object"]-->Type Type["Staff"] class Type type-node

Syntax

public class Staff

Constructors

Name Summary
Staff() Initializes a new instance of the Staff class.

Properties

Name Value Summary
Bars FastList<T>
Gets or sets a list of all bars contained in this staff.
Capo int
Gets or sets the fret on which a capo is set. s
Chords FastDictionary<TKey, TValue>
Gets or sets a list of all chords defined for this staff. ChordId refers to entries in this lookup.
DisplayTranspositionPitch int
Gets or sets the number of semitones this track should be transposed. This applies only to rendering.
Index int
Gets or sets the zero-based index of this staff within the track.
IsStringed bool
Gets a value indicating whether this staff contains string based notes.
StaffKind StaffKind
Gets or sets the staff kind.
Track Track
Gets or sets the reference to the track this staff belongs to.
TranspositionPitch int
Gets or sets the number of semitones this track should be transposed. This applies to rendering and playback.
Tuning int[]
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.
TuningName string
Gets or sets the name of the tuning.