1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
7 lsrtags
= "fretted-strings, tweaks-and-overrides"
10 This snippet shows many possibilities for obtaining and tweaking fret
14 doctitle
= "Fret diagrams explained and developed"
27 % Set global properties of fret diagram
28 \override TextScript
#'size
= #1.2
30 #'fret-diagram-details
#'finger-code
= #'below-string
31 \override TextScript
#'fret-diagram-details
#'dot-color
= #'black
33 %% A chord for ukulele
35 \override #'(fret-diagram-details
. (
38 (finger-code
. in-dot
))) {
39 \fret-diagram
#"4-2-2;3-1-1;2-o;1-o;"
43 %% A chord for ukulele, with formatting defined in definition string
44 % 1.2 * size, 4 strings, 4 frets, fingerings below string
45 % dot radius .35 of fret spacing, dot position 0.55 of fret spacing
47 \override #'(fret-diagram-details
. (
49 (open-string
. "o"))) {
50 \fret-diagram
#"s:1.2;w:4;h:3;f:2;d:0.35;p:0.55;4-2-2;3-1-1;2-o;1-o;"
54 %% These chords will be in normal orientation
56 %% C major for guitar, barred on third fret
58 % roman fret label, finger labels below string, straight barre
60 % 110% of default size
61 \override #'(size
. 1.1) {
62 \override #'(fret-diagram-details
. (
63 (number-type
. roman-lower
)
64 (finger-code
. below-string
)
65 (barre-type
. straight
))) {
66 \fret-diagram-verbose
#'((mute
6)
77 %% C major for guitar, barred on third fret
78 %% Double barre used to test barre function
81 % 110% of default size
82 \override #'(size
. 1.1) {
83 \override #'(fret-diagram-details
. (
84 (number-type
. arabic
)
85 (dot-label-font-mag
. 0.9)
86 (finger-code
. in-dot
)
87 (fret-label-font-mag
. 0.6)
88 (fret-label-vertical-offset
. 0)
91 (xo-font-magnification
. 0.4)
92 (xo-padding
. 0.3))) {
93 \fret-diagram-verbose
#'((mute
6)
105 %% C major for guitar, with capo on third fret
108 % 110% of default size
109 \override #'(size
. 1.1) {
110 \override #'(fret-diagram-details
. (
111 (number-type
. roman-upper
)
112 (dot-label-font-mag
. 0.9)
114 (fret-label-vertical-offset
. 0.5)
115 (xo-font-magnification
. 0.4)
116 (xo-padding
. 0.3))) {
117 \fret-diagram-verbose
#'((mute
6)
130 \override #'(fret-diagram-details
. (
131 (finger-code
. below-string
)
133 (string-thickness-factor
. 0.3)
136 \fret-diagram-terse
#"x;x;o;2-1;3-2;2-3;"
140 %% simple D chord, large top fret thickness
142 \override #'(fret-diagram-details
. (
143 (finger-code
. below-string
)
146 (top-fret-thickness
. 7)
148 \fret-diagram-terse
#"x;x;o;2-1;3-2;2-3;"
152 % These chords will be in landscape orientation
154 #'fret-diagram-details
#'orientation
= #'landscape
156 %% C major for guitar, barred on third fret
158 % roman fret label, finger labels below string, straight barre
160 % 110% of default size
161 \override #'(size
. 1.1) {
162 \override #'(fret-diagram-details
. (
163 (number-type
. roman-lower
)
164 (finger-code
. below-string
)
165 (barre-type
. straight
))) {
166 \fret-diagram-verbose
#'((mute
6)
177 %% C major for guitar, barred on third fret
178 %% Double barre used to test barre function
181 % 110% of default size
182 \override #'(size
. 1.1) {
183 \override #'(fret-diagram-details
. (
184 (number-type
. arabic
)
185 (dot-label-font-mag
. 0.9)
186 (finger-code
. in-dot
)
187 (fret-label-font-mag
. 0.6)
188 (fret-label-vertical-offset
. 0)
191 (xo-font-magnification
. 0.4)
192 (xo-padding
. 0.3))) {
193 \fret-diagram-verbose
#'((mute
6)
205 %% C major for guitar, with capo on third fret
208 % 110% of default size
209 \override #'(size
. 1.1) {
210 \override #'(fret-diagram-details
. (
211 (number-type
. roman-upper
)
212 (dot-label-font-mag
. 0.9)
214 (fret-label-vertical-offset
. 0.5)
215 (xo-font-magnification
. 0.4)
216 (xo-padding
. 0.3))) {
217 \fret-diagram-verbose
#'((mute
6)
230 \override #'(fret-diagram-details
. (
231 (finger-code
. below-string
)
235 \fret-diagram-terse
#"x;x;o;2-1;3-2;2-3;"
239 %% simple D chord, large top fret thickness
241 \override #'(fret-diagram-details
. (
242 (finger-code
. below-string
)
245 (top-fret-thickness
. 7)
247 \fret-diagram-terse
#"x;x;o;2-1;3-2;2-3;"
251 % These chords will be in opposing-landscape orientation
252 \override TextScript
#'fret-diagram-details
253 #'orientation
= #'opposing-landscape
255 %% C major for guitar, barred on third fret
257 % roman fret label, finger labels below string, straight barre
259 % 110% of default size
260 \override #'(size
. 1.1) {
261 \override #'(fret-diagram-details
. (
262 (number-type
. roman-lower
)
263 (finger-code
. below-string
)
264 (barre-type
. straight
))) {
265 \fret-diagram-verbose
#'((mute
6)
276 %% C major for guitar, barred on third fret
277 %% Double barre used to test barre function
280 % 110% of default size
281 \override #'(size
. 1.1) {
282 \override #'(fret-diagram-details
. (
283 (number-type
. arabic
)
284 (dot-label-font-mag
. 0.9)
285 (finger-code
. in-dot
)
286 (fret-label-font-mag
. 0.6)
287 (fret-label-vertical-offset
. 0)
290 (xo-font-magnification
. 0.4)
291 (xo-padding
. 0.3))) {
292 \fret-diagram-verbose
#'((mute
6)
304 %% C major for guitar, with capo on third fret
307 % 110% of default size
308 \override #'(size
. 1.1) {
309 \override #'(fret-diagram-details
. (
310 (number-type
. roman-upper
)
311 (dot-label-font-mag
. 0.9)
313 (fret-label-vertical-offset
. 0.5)
314 (xo-font-magnification
. 0.4)
315 (xo-padding
. 0.3))) {
316 \fret-diagram-verbose
#'((mute
6)
329 \override #'(fret-diagram-details
. (
330 (finger-code
. below-string
)
334 \fret-diagram-terse
#"x;x;o;2-1;3-2;2-3;"
338 %% simple D chord, large top fret thickness
340 \override #'(fret-diagram-details
. (
341 (finger-code
. below-string
)
344 (top-fret-thickness
. 7)
346 \fret-diagram-terse
#"x;x;o;2-1;3-2;2-3;"