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