3 texidoc = "Frets are supported as markup commands."
10 \chords {d2. d d s fis fis fis s c c c}
15 d'2. ^\markup \fret-diagram-verbose #'((mute 6) (mute 5) (open 4) (place-fret 3 2) (place-fret 2 3) (place-fret 1 2))
16 d' ^\markup \fret-diagram #"6-x;5-x;4-o;3-2;2-3;1-2;"
17 d' ^\markup \fret-diagram-terse #"x;x;o;2;3;2;"
19 % fis major chord, 3/4 size, fingering labeled below string
21 fis' ^\markup \override #'(size . 0.75) {\override #'(finger-code . below-string){\fret-diagram-verbose #'((place-fret 6 2 1) (barre 6 1 2) (place-fret 5 4 3) (place-fret 4 4 4) (place-fret 3 3 2) (place-fret 2 2 1) (place-fret 1 2 1))}}
22 fis' ^\markup \override #'(finger-code . below-string) {\fret-diagram #"s:0.75;c:6-1-2;6-2-1;5-4-3;4-4-4;3-3-2;2-2-1;1-2-1;"}
23 fis' ^\markup \override #'(size . 0.75) {\override #'(finger-code . below-string){\fret-diagram-terse #"2-1-(;4-3;4-4;3-2;2-1;2-1-);"}}
26 % c major barre chord, fingering labeled on frets
27 c' ^\markup \override #'(dot-color . white) {
28 \override #'(finger-code . in-dot)
29 \fret-diagram-verbose #'((mute 6) (place-fret 5 3 1) (place-fret 4 5 2) (place-fret 3 5 3) (place-fret 2 5 4) (place-fret 1 3 1) (barre 5 1 3)) }
30 c' ^\markup \override #'(barre-type . straight) \fret-diagram #"f:1;c:5-1-3;6-x;5-3-1;4-5-2;3-5-3;2-5-4;1-3-1;"
31 c' ^\markup \override #'(dot-radius . 0.35) {
32 \override #'(finger-code . in-dot) {
33 \override #'(dot-color . white) {
34 \fret-diagram-terse #"x;3-1-(;5-2;5-3;5-4;3-1-);"}}}
37 % c major scale using open strings
38 c' ^\markup \fret-diagram-verbose #'((mute 6) (place-fret 5 3) (open 4) (place-fret 4 2) (place-fret 4 3) (open 3) (place-fret 3 2) (open 2) (place-fret 2 1) (mute 1))
39 c' ^\markup \fret-diagram #'"6-x;5-3;4-o;4-2;4-3;3-o;3-2;2-o;2-1;1-x;"
40 c' ^\markup \fret-diagram-terse #'"x;3;2 3;o 2;o 1;x;"
42 % c major scale using no open strings
43 c' ^\markup \fret-diagram-verbose #'((mute 6) (place-fret 5 3) (place-fret 5 5) (place-fret 4 2) (place-fret 4 3) (place-fret 4 5) (place-fret 3 2) (place-fret 3 4) (place-fret 3 5) (mute 2) (mute 1))
44 c' ^\markup \fret-diagram #'"6-x;5-3;5-5;4-2;4-3;4-5;3-2;3-4;3-5;2-x;1-x;"
45 c' ^\markup \fret-diagram-terse #'"x;3 5;2 3 5;2 4 5;x;x;"
47 % g major scale, no open strings, two octaves on six strings, white dots
48 g' ^\markup \override #'(dot-color . white) {\fret-diagram-terse #'"3 5;2 3 5;2 4 5;2 4 5;3 5;2 3;" }
51 \layout{ raggedright = ##t }