Skip to main content

Staff metadata

This page describes all the metadata tags which affect the "staff" level of the data model.

To avoid any unexpected side-effects, these values should be specified on the first bar.

Some of these tags are simply historically metadata tags. They might become staff properties in future.

\tuning​

Syntax
// [1]: 
\tuning mode
// [2]:
\tuning (strings)

Description: Defines the number of strings and their tuning for stringed (and fretted) instruments.

Parameters:

OverloadNameDescriptionTypeRequired
[1]modeA built-in standard mode for tuningspiano|none|voiceyes
[2]stringsThe tuning values as pitched notesIdent[]no

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[1]mode
ValueDescription
pianoIndicates that this staff is NOT stringed, but a piano with pitched notes.
noneIndicates that this staff is NOT stringed and has no tuning and uses pitched notes.
voiceIndicates that this staff is NOT stringed, but a vocal voice with pitched notes.

Example:

\track "Track 1" \staff {tabs} \tuning (A1 D2 A2 D3 G3 B3 E4) { hide label "Special Guitar Tuning" } 4.1 3.1 2.1 1.1 \track "Track 2" \tuning piano C4 D4 E4 F4
\track "Track 1"
\staff {tabs}
\tuning (A1 D2 A2 D3 G3 B3 E4) { hide label "Special Guitar Tuning" }
4.1 3.1 2.1 1.1
\track "Track 2"
\tuning piano
C4 D4 E4 F4

Properties:

hide​

Syntax
hide ()

Description: Hides the tuning from being displayed above the first staff.

Example:

\track \staff {tabs} \tuning (E4 B3 G3 D3 A2 D2) 4.1 3.1 2.1 1.1 \track \staff {tabs} \tuning (F2 C2 G1 D1) { hide} 4.1 3.1 2.1 1.1
\track
\staff {tabs}
\tuning (E4 B3 G3 D3 A2 D2)
4.1 3.1 2.1 1.1
\track
\staff {tabs}
\tuning (F2 C2 G1 D1) { hide}
4.1 3.1 2.1 1.1

label​

Syntax
label text

Description: Defines the textual label for the tuning.

Parameters:

NameDescriptionTypeRequired
textThe label to set.Stringyes

Example:

\track \staff {tabs} \tuning (E4 B3 G3 D3 A2 D2) { label "Dropped D Tuning" } 4.1 3.1 2.1 1.1
\track
\staff {tabs}
\tuning (E4 B3 G3 D3 A2 D2) { label "Dropped D Tuning" }
4.1 3.1 2.1 1.1

\chord​

Syntax
\chord (name strings)

Description: Defines a new chord for a chord diagram display defining how to play it.

To avoid inconsistencies with tunings, chords should be defined after the tuning is set.

To use the defined chord the ch chordName beat property has to be applied. The notes for the chord still have to be specified separately, the definition in this metadata is purely for the chord diagram.

Parameters:

NameDescriptionTypeRequired
nameThe name of the chordStringyes
stringsFor every string of the staff tuning, the fret to be played or x for strings not played.Ident|String|Number[]no

Example:

\chord ("C" 0 1 0 2 3 x) \ts 2 4 (0.1 1.2 0.3 2.4 3.5){ch "C"} (0.1 1.2 0.3 2.4 3.5)
\chord ("C" 0 1 0 2 3 x)
\ts 2 4
(0.1 1.2 0.3 2.4 3.5){ch "C"} (0.1 1.2 0.3 2.4 3.5)

Properties:

firstFret​

Syntax
firstFret fret

Description: Shifts the first fret shown in the diagram higher

Parameters:

NameDescriptionTypeRequired
fretThe index of the first fretNumberyes

Example:

\chord ("D#" 6 8 8 8 6 x) {firstfret 6} (6.1 8.2 8.3 8.4 6.5){ch "D#"}
\chord ("D#" 6 8 8 8 6 x) {firstfret 6}
(6.1 8.2 8.3 8.4 6.5){ch "D#"}

barre​

Syntax
barre (fret)

Description: Defines on which frets a barrΓ© should be played (visually joins the dots to a bar).

Parameters:

NameDescriptionTypeRequired
fretThe frets on which a barrΓ© should be playedNumber[]no

Example:

\chord ("D#" 6 8 8 8 6 x) {firstfret 6 barre 6} \chord ("Special" 3 3 3 1 1 1) {showname false barre (1 3)} (6.1 8.2 8.3 8.4 6.5){ch "D#"} (3.1 3.2 3.3 1.4 1.5 1.6){ch "Special"}
\chord ("D#" 6 8 8 8 6 x) {firstfret 6 barre 6}
\chord ("Special" 3 3 3 1 1 1) {showname false barre (1 3)}
(6.1 8.2 8.3 8.4 6.5){ch "D#"}
(3.1 3.2 3.3 1.4 1.5 1.6){ch "Special"}

showDiagram​

Syntax
// [1]: 
showDiagram ()
// [2]:
showDiagram visibility
// [3]:
showDiagram visibility
// [4]:
showDiagram visibility

Description: Set the chord diagram visibility.

Parameters:

OverloadNameDescriptionTypeRequired
[2]visibilityThe visibility of the diagram"true"|"false"yes
[3]visibilityThe visibility of the diagramtrue|falseyes
[4]visibilityThe visibility of the diagram1|0yes

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[2]visibility
ValueDescription
"true"Show the diagram
"false"Hide the diagram
[3]visibility
ValueDescription
trueShow the diagram
falseHide the diagram
[4]visibility
ValueDescription
1Show the diagram
0Hide the diagram

Example:

\chord ("E" 0 0 1 2 2 0) {showdiagram false} (0.1 0.2 1.3 2.4 2.5 0.6){ch "E"}
\chord ("E" 0 0 1 2 2 0) {showdiagram false}
(0.1 0.2 1.3 2.4 2.5 0.6){ch "E"}

showFingering​

Syntax
// [1]: 
showFingering ()
// [2]:
showFingering visibility
// [3]:
showFingering visibility
// [4]:
showFingering visibility

Description: Set the finger position visibility.

Parameters:

OverloadNameDescriptionTypeRequired
[2]visibilityThe visibility of the finger position"true"|"false"yes
[3]visibilityThe visibility of the finger positiontrue|falseyes
[4]visibilityThe visibility of the finger position1|0yes

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[2]visibility
ValueDescription
"true"Show the fingering
"false"Hide the fingering
[3]visibility
ValueDescription
trueShow the fingering
falseHide the fingering
[4]visibility
ValueDescription
1Show the fingering
0Hide the fingering

Example:

\chord ("E" 0 0 1 2 2 0) {showfingers false} (0.1 0.2 1.3 2.4 2.5 0.6){ch "E"}
\chord ("E" 0 0 1 2 2 0) {showfingers false}
(0.1 0.2 1.3 2.4 2.5 0.6){ch "E"}

showName​

Syntax
// [1]: 
showName ()
// [2]:
showName visibility
// [3]:
showName visibility
// [4]:
showName visibility

Description: Set the chord name visibility.

Parameters:

OverloadNameDescriptionTypeRequired
[2]visibilityThe visibility of the chord name in the diagram"true"|"false"yes
[3]visibilityThe visibility of the chord name in the diagramtrue|falseyes
[4]visibilityThe visibility of the chord name in the diagram1|0yes

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[2]visibility
ValueDescription
"true"Show the chord name
"false"Hide the chord name
[3]visibility
ValueDescription
trueShow the chord name
falseHide the chord name
[4]visibility
ValueDescription
1Show the chord name
0Hide the chord name

Example:

// Hide name \chord ("Special" 3 3 3 1 1 1) {showname false} . (3.1 3.2 3.3 1.4 1.5 1.6){ch "Special"}
// Hide name
\chord ("Special" 3 3 3 1 1 1) {showname false}
.
(3.1 3.2 3.3 1.4 1.5 1.6){ch "Special"}

\capo​

Syntax
\capo fret

Description: Defines the fret on which a capo should be placed.

Parameters:

NameDescriptionTypeRequired
fretThe fret on which a capo is placedNumberyes

Example:

\track "Guitar" \staff{tabs} \capo 5 1.2 3.2 0.1 1.1
\track "Guitar"
\staff{tabs}
\capo 5
1.2 3.2 0.1 1.1

\lyrics​

Syntax
// [1]: 
\lyrics lyrics
// [2]:
\lyrics (startBar lyrics)

Description: Define the lyrics shown on the beats of the staff.

The lyrics system of alphaTab is borrowed from Guitar Pro. For every track multiple "lines" of lyrics can be defined which can either start at the beginning or at a later bar. The syllables of the provided lyrics are spread automatically across the beats of the track. Syllables are separated with spaces. If multiple words/syllables should stay on the same beat the space can be replaced with a +. Comments which should not be displayed can be put [into brackets].

Parameters:

OverloadNameDescriptionTypeRequired
[1]lyricsThe lyrics text to apply to the beatsStringyes
[2]startBarThe first bar on which the notes should be appliedNumberyes
[2]lyricsThe lyrics text to apply to the beatsStringyes

Example:

\title "With Lyrics" \instrument piano \lyrics "Do Re Mi Fa So La Ti" C4 D4 E4 F4 | G4 A4 B4 r
\title "With Lyrics"
\instrument piano
\lyrics "Do Re Mi Fa So La Ti"
C4 D4 E4 F4 | G4 A4 B4 r
\title "Combine Syllables (and empty beats)" \instrument piano \lyrics "Do+Do Mi+Mi" C4 C4 E4 E4
\title "Combine Syllables (and empty beats)"
\instrument piano
\lyrics "Do+Do Mi+Mi"
C4 C4 E4 E4
\title "Start Later" \instrument piano \lyrics 2 "Do Re Mi Fa So La Ti" r r r r | r r r r | C4 D4 E4 F4 | G4 A4 B4 r
\title "Start Later"
\instrument piano
\lyrics 2 "Do Re Mi Fa So La Ti"
r r r r | r r r r |
C4 D4 E4 F4 | G4 A4 B4 r
\title "Comment" \subtitle "Useful when loading lyrics from a different source" \instrument piano \lyrics "[This is a comment]Do Re Mi Fa" C4 D4 E4 F4
\title "Comment"
\subtitle "Useful when loading lyrics from a different source"
\instrument piano
\lyrics "[This is a comment]Do Re Mi Fa"
C4 D4 E4 F4

\articulation​

Syntax
// [1]: Registers all standard articulation names
\articulation defaults
// [2]:
\articulation (name value)

Description: Defines the articulations available to write percussion and drum tabs.

Currently alphaTex does not defining completely custom articulations (note heads, staff line, technical symbols etc.).

NumberName LongName Short
29Ride (choke)Ridechoke
30Cymbal (hit)Cymbalhit
31Snare (side stick)Snaresidestick
33Snare (side stick) 2Snaresidestick2
34Snare (hit)Snarehit
35Kick (hit)Kickhit
36Kick (hit) 2Kickhit2
37Snare (side stick) 3Snaresidestick3
38Snare (hit) 2Snarehit2
39Hand Clap (hit)HandClaphit
40Snare (hit) 3Snarehit3
41Low Floor Tom (hit)LowFloorTomhit
42Hi-Hat (closed)HiHatclosed
43Very Low Tom (hit)VeryLowTomhit
44Pedal Hi-Hat (hit)PedalHiHathit
45Low Tom (hit)LowTomhit
46Hi-Hat (open)HiHatopen
47Mid Tom (hit)MidTomhit
48High Tom (hit)HighTomhit
49Crash high (hit)Crashhighhit
50High Floor Tom (hit)HighFloorTomhit
51Ride (middle)Ridemiddle
52China (hit)Chinahit
53Ride (bell)Ridebell
54Tambourine (hit)Tambourinehit
55Splash (hit)Splashhit
56Cowbell medium (hit)Cowbellmediumhit
57Crash medium (hit)Crashmediumhit
58Vibraslap (hit)Vibraslaphit
59Ride (edge)Rideedge
60Hand (hit)Handhit
61Hand (hit)Handhit
62Conga high (mute)Congahighmute
63Conga high (hit)Congahighhit
64Conga low (hit)Congalowhit
65Timbale high (hit)Timbalehighhit
66Timbale low (hit)Timbalelowhit
67Agogo high (hit)Agogohighhit
68Agogo tow (hit)Agogotowhit
69Cabasa (hit)Cabasahit
70Left Maraca (hit)LeftMaracahit
71Whistle high (hit)Whistlehighhit
72Whistle low (hit)Whistlelowhit
73Guiro (hit)Guirohit
74Guiro (scrap-return)Guiroscrapreturn
75Claves (hit)Claveshit
76Woodblock high (hit)Woodblockhighhit
77Woodblock low (hit)Woodblocklowhit
78Cuica (mute)Cuicamute
79Cuica (open)Cuicaopen
80Triangle (rnute)Trianglernute
81Triangle (hit)Trianglehit
82Shaker (hit)Shakerhit
83Tinkle Bell (hat)TinkleBellhat
83Jingle Bell (hit)JingleBellhit
84Bell Tree (hit)BellTreehit
85Castanets (hit)Castanetshit
86Surdo (hit)Surdohit
87Surdo (mute)Surdomute
91Snare (rim shot)Snarerimshot
92Hi-Hat (half)HiHathalf
93Ride (edge) 2Rideedge2
94Ride (choke) 2Ridechoke2
95Splash (choke)Splashchoke
96China (choke)Chinachoke
97Crash high (choke)Crashhighchoke
98Crash medium (choke)Crashmediumchoke
99Cowbell low (hit)Cowbelllowhit
100Cowbell low (tip)Cowbelllowtip
101Cowbell medium (tip)Cowbellmediumtip
102Cowbell high (hit)Cowbellhighhit
103Cowbell high (tip)Cowbellhightip
104Hand (mute)Handmute
105Hand (slap)Handslap
106Hand (mute) 2Handmute2
107Hand (slap) 2Handslap2
108Conga low (slap)Congalowslap
109Conga low (mute)Congalowmute
110Conga high (slap)Congahighslap
111Tambourine (return)Tambourinereturn
112Tambourine (roll)Tambourineroll
113Tambourine (hand)Tambourinehand
114Grancassa (hit)Grancassahit
115Piatti (hat)Piattihat
116Piatti (hand)Piattihand
117Cabasa (return)Cabasareturn
118Left Maraca (return)LeftMaracareturn
119Right Maraca (hit)RightMaracahit
120Right Maraca (return)RightMaracareturn
122Shaker (return)Shakerreturn
123Bell Tee (return)BellTeereturn
124Golpe (thumb)Golpethumb
125Golpe (finger)Golpefinger
126Ride (middle) 2Ridemiddle2
127Ride (bell) 2Ridebell2

Parameters:

OverloadNameDescriptionTypeRequired
[1]defaultsRegisters all standard articulation namesdefaultsyes
[2]nameThe string used in the note valuesStringyes
[2]valueThe numeric value of the built-in articulationNumberyes

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[1]defaults
ValueDescription
defaults

Example:

\track "Drums" \instrument percussion \tempo 120 \clef neutral \articulation defaults (KickHit RideBell).16 r KickHit KickHit (KickHit RideBell).16 r KickHit KickHit (KickHit RideBell).16 r KickHit KickHit (KickHit RideBell).16 r KickHit KickHit | (KickHit HiHatOpen) KickHit KickHit KickHit (KickHit HiHatOpen) KickHit KickHit KickHit (KickHit SnareHit HiHatOpen) KickHit KickHit.32 KickHit KickHit.16 (KickHit HiHatOpen) KickHit KickHit KickHit | (KickHit HiHatOpen).8{tu 3} KickHit{tu 3} KickHit{tu 3} (KickHit SnareHit HiHatOpen){tu 3} KickHit.16{tu 3} KickHit{tu 3} KickHit.8{tu 3} (KickHit HiHatOpen).8{tu 3} KickHit{tu 3} KickHit{tu 3} (KickHit SnareHit HiHatOpen).8{tu 3} KickHit{tu 3} KickHit{tu 3}
\track "Drums"
\instrument percussion
\tempo 120
\clef neutral
\articulation defaults
(KickHit RideBell).16 r KickHit KickHit (KickHit RideBell).16 r KickHit KickHit (KickHit RideBell).16 r KickHit KickHit (KickHit RideBell).16 r KickHit KickHit |
(KickHit HiHatOpen) KickHit KickHit KickHit (KickHit HiHatOpen) KickHit KickHit KickHit (KickHit SnareHit HiHatOpen) KickHit KickHit.32 KickHit KickHit.16 (KickHit HiHatOpen) KickHit KickHit KickHit |
(KickHit HiHatOpen).8{tu 3} KickHit{tu 3} KickHit{tu 3} (KickHit SnareHit HiHatOpen){tu 3} KickHit.16{tu 3} KickHit{tu 3} KickHit.8{tu 3} (KickHit HiHatOpen).8{tu 3} KickHit{tu 3} KickHit{tu 3} (KickHit SnareHit HiHatOpen).8{tu 3} KickHit{tu 3} KickHit{tu 3}

\displayTranspose​

Syntax
\displayTranspose semitones

Description: Defines the number of semitones by which the standard notation should be transposed.

This only affects the display of the notes, not their audio.

It is typically used in situations like for guitars where the standard notation is displayed 1 octave lower to fit better into the standard staff.

It is a common practice to show a standard clef on guitar notes even though they are transposed by 1 octave to better fit into the standard staff lines.

Parameters:

NameDescriptionTypeRequired
semitonesThe number of semitones by which the notes should be transposedNumberyes

Example:

\track \staff \instrument piano \displayTranspose -12 C4.4 D4 E4 F4 | r.1
\track \staff \instrument piano
\displayTranspose -12
C4.4 D4 E4 F4 | r.1

\transpose​

Syntax
\transpose semitones

Description: Defines the number of semitones by which the standard notation should be transposed.

This affects the display and audio.

Parameters:

NameDescriptionTypeRequired
semitonesThe number of semitones by which the notes should be transposedNumberyes

Example:

\track \staff \instrument piano \transpose -12 C4.4 D4 E4 F4 | r.1
\track \staff \instrument piano
\transpose -12
C4.4 D4 E4 F4 | r.1