]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/tablature-letter.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / input / regression / tablature-letter.ly
1 \version "2.19.21"
2
3 \header {
4   texidoc = "
5 A sample tablature with lettered tab,
6 using fretLabels to modify the fret letters.
7
8 By default, letters are drawn sequentially from the alphabet,
9 but if the context property fretLabels is defined, these are
10 substituted.  If specified, the length of fretLabels must be
11 sufficient to label all the frets used.  A warning is issued
12 if the length is too short.
13 "
14 }
15
16 notes = \relative {
17   \time 3/4
18   <f' d>4. <bes>8 <g e>4
19   \set fretLabels = \markuplist {"a" "b" \italic \smaller "c"}
20   <f d>4. <bes>8 <g e>4
21   \set fretLabels = \markuplist {\with-color #red "a"
22                        "b"
23                        \italic \smaller "c"}
24   <f d>4. <bes>8 <g e>4
25   \set fretLabels = \markuplist {"α" "β" "γ"}
26   <f d>4. <bes>8 <g e>4
27 }
28
29 \score {
30   \new TabStaff
31   \with {
32     stringTunings = \stringTuning <a d' f' a' d'' f''>
33     tablatureFormat = #fret-letter-tablature-format
34   }
35   \new TabVoice {
36     \notes
37   }
38 }