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​

Tag Syntax
\tuning (strings) { label "Label" hide }
\tuning `piano`
\tuning `none`
\tuning `voice`

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

Values:

NameDescriptionTypeRequired
stringsThe tuning values as pitched notes)identifier listyes
pianoIndicates that this staff is NOT stringed, but a piano with pitched notes.identifieryes
noneIndicates that this staff is NOT stringed and has no tuning and uses pitched notes.identifieryes
voiceIndicates that this staff is NOT stringed, but a vocal voice with pitched notes.identifieryes

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

The following properties are supported on this metadata.

hide​

Syntax
hide

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

Values: None

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.

Values:

NameDescriptionTypeRequired
textThe label to setstringyes

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​

Tag 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.

Values:

NameDescriptionTypeRequired
nameThe name of the chordstring or identifieryes
stringsFor every string of the staff tuning, the fret to be played or x for strings not played.identifier or number listyes

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)

The following properties are supported on this metadata.

firstfret​

Syntax
firstfret fret

Description: Shifts the first fret shown in the diagram higher

Values:

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
barre (fret1 fret2...)

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

Values:

NameDescriptionTypeRequired
fretsThe frets on which a barrΓ© should be playednumber listyes

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
showDiagram visibility

Description: Enables/Disables whether the chord diagram should be shown.

Values:

NameDescriptionTypeRequired
visibilityThe visibility of the diagramnumber (0/1) or boolean (false/true)No (default: true)

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"}

showName​

Syntax
showName visibility

Description: Enables/Disables whether the chord name should be shown.

Values:

NameDescriptionTypeRequired
visibilityThe visibility of the diagramnumber (0/1) or boolean (false/true)No (default: true)

Example:

// Hide name and multiple barre \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 and multiple barre
\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.

Values:

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

There are no properties on this metadata.

\lyrics​

Syntax
\lyrics startBar lyrics
\lyrics 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 procided 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].

Values:

NameDescriptionTypeRequired
startBarThe first bar on which the notes should be appliednumberno
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​

since 1.4.0
Syntax
\articulation defaults
\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.).

Values:

NameDescriptionTypeRequired
defaultsRegisters all standard articulation namesidentifieryes (unless name/value syntax is used)
nameThe string (or identifier) used in the note valuesstring or identifieryes
valueThe numeric value of the built-in articulationidentifieryes

Built-in articulations:

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

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}
\track "Drums" \instrument percussion \tempo 120 \clef neutral \ts 2 4 29 30 31 | 33 34 35 36 | 37 38 39 40 | 41 42 43 44 | 45 46 47 48 | 49 50 51 52 | 53 54 55 56 | 57 58 59 60 | 61 62 63 64 | 65 66 67 68 | 69 70 71 72 | 73 74 75 76 | 77 78 79 80 | 81 82 83 83 | 84 85 86 87 | 91 92 93 94 | 95 96 97 98 | 99 100 101 102 | 103 104 105 106 | 107 108 109 110 | 111 112 113 114 | 115 116 117 118 | 119 120 122 123 | 124 125 126 127 |
\track "Drums"
\instrument percussion
\tempo 120
\clef neutral
\ts 2 4
29 30 31 |
33 34 35 36 |
37 38 39 40 |
41 42 43 44 |
45 46 47 48 |
49 50 51 52 |
53 54 55 56 |
57 58 59 60 |
61 62 63 64 |
65 66 67 68 |
69 70 71 72 |
73 74 75 76 |
77 78 79 80 |
81 82 83 83 |
84 85 86 87 |
91 92 93 94 |
95 96 97 98 |
99 100 101 102 |
103 104 105 106 |
107 108 109 110 |
111 112 113 114 |
115 116 117 118 |
119 120 122 123 |
124 125 126 127 |

There are no properties on this metadata.

\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.

Values:

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

There are no properties on this metadata.

\transpose​

Syntax
\transpose semitones 

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

This affects the display and audio.

Values:

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

There are no properties on this metadata.