1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
10 lsrtags = "fretted-strings, tweaks-and-overrides"
13 This snippet shows many possibilities for obtaining and tweaking fret
17 doctitle = "Fret diagrams explained and developed"
30 % Set global properties of fret diagram
31 \override TextScript #'size = #1.2
33 #'fret-diagram-details #'finger-code = #'below-string
34 \override TextScript #'fret-diagram-details #'dot-color = #'black
36 %% A chord for ukulele
38 \override #'(fret-diagram-details . (
41 (finger-code . in-dot))) {
42 \fret-diagram #"4-2-2;3-1-1;2-o;1-o;"
46 %% A chord for ukulele, with formatting defined in definition string
47 % 1.2 * size, 4 strings, 4 frets, fingerings below string
48 % dot radius .35 of fret spacing, dot position 0.55 of fret spacing
50 \override #'(fret-diagram-details . (
52 (open-string . "o"))) {
53 \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;"
57 %% These chords will be in normal orientation
59 %% C major for guitar, barred on third fret
61 % roman fret label, finger labels below string, straight barre
63 % 110% of default size
64 \override #'(size . 1.1) {
65 \override #'(fret-diagram-details . (
66 (number-type . roman-lower)
67 (finger-code . below-string)
68 (barre-type . straight))) {
69 \fret-diagram-verbose #'((mute 6)
80 %% C major for guitar, barred on third fret
81 %% Double barre used to test barre function
84 % 110% of default size
85 \override #'(size . 1.1) {
86 \override #'(fret-diagram-details . (
87 (number-type . arabic)
88 (dot-label-font-mag . 0.9)
89 (finger-code . in-dot)
90 (fret-label-font-mag . 0.6)
91 (fret-label-vertical-offset . 0)
94 (xo-font-magnification . 0.4)
95 (xo-padding . 0.3))) {
96 \fret-diagram-verbose #'((mute 6)
108 %% C major for guitar, with capo on third fret
111 % 110% of default size
112 \override #'(size . 1.1) {
113 \override #'(fret-diagram-details . (
114 (number-type . roman-upper)
115 (dot-label-font-mag . 0.9)
117 (fret-label-vertical-offset . 0.5)
118 (xo-font-magnification . 0.4)
119 (xo-padding . 0.3))) {
120 \fret-diagram-verbose #'((mute 6)
133 \override #'(fret-diagram-details . (
134 (finger-code . below-string)
136 (string-thickness-factor . 0.3)
139 \fret-diagram-terse #"x;x;o;2-1;3-2;2-3;"
143 %% simple D chord, large top fret thickness
145 \override #'(fret-diagram-details . (
146 (finger-code . below-string)
149 (top-fret-thickness . 7)
151 \fret-diagram-terse #"x;x;o;2-1;3-2;2-3;"
155 % These chords will be in landscape orientation
157 #'fret-diagram-details #'orientation = #'landscape
159 %% C major for guitar, barred on third fret
161 % roman fret label, finger labels below string, straight barre
163 % 110% of default size
164 \override #'(size . 1.1) {
165 \override #'(fret-diagram-details . (
166 (number-type . roman-lower)
167 (finger-code . below-string)
168 (barre-type . straight))) {
169 \fret-diagram-verbose #'((mute 6)
180 %% C major for guitar, barred on third fret
181 %% Double barre used to test barre function
184 % 110% of default size
185 \override #'(size . 1.1) {
186 \override #'(fret-diagram-details . (
187 (number-type . arabic)
188 (dot-label-font-mag . 0.9)
189 (finger-code . in-dot)
190 (fret-label-font-mag . 0.6)
191 (fret-label-vertical-offset . 0)
194 (xo-font-magnification . 0.4)
195 (xo-padding . 0.3))) {
196 \fret-diagram-verbose #'((mute 6)
208 %% C major for guitar, with capo on third fret
211 % 110% of default size
212 \override #'(size . 1.1) {
213 \override #'(fret-diagram-details . (
214 (number-type . roman-upper)
215 (dot-label-font-mag . 0.9)
217 (fret-label-vertical-offset . 0.5)
218 (xo-font-magnification . 0.4)
219 (xo-padding . 0.3))) {
220 \fret-diagram-verbose #'((mute 6)
233 \override #'(fret-diagram-details . (
234 (finger-code . below-string)
238 \fret-diagram-terse #"x;x;o;2-1;3-2;2-3;"
242 %% simple D chord, large top fret thickness
244 \override #'(fret-diagram-details . (
245 (finger-code . below-string)
248 (top-fret-thickness . 7)
250 \fret-diagram-terse #"x;x;o;2-1;3-2;2-3;"
254 % These chords will be in opposing-landscape orientation
255 \override TextScript #'fret-diagram-details
256 #'orientation = #'opposing-landscape
258 %% C major for guitar, barred on third fret
260 % roman fret label, finger labels below string, straight barre
262 % 110% of default size
263 \override #'(size . 1.1) {
264 \override #'(fret-diagram-details . (
265 (number-type . roman-lower)
266 (finger-code . below-string)
267 (barre-type . straight))) {
268 \fret-diagram-verbose #'((mute 6)
279 %% C major for guitar, barred on third fret
280 %% Double barre used to test barre function
283 % 110% of default size
284 \override #'(size . 1.1) {
285 \override #'(fret-diagram-details . (
286 (number-type . arabic)
287 (dot-label-font-mag . 0.9)
288 (finger-code . in-dot)
289 (fret-label-font-mag . 0.6)
290 (fret-label-vertical-offset . 0)
293 (xo-font-magnification . 0.4)
294 (xo-padding . 0.3))) {
295 \fret-diagram-verbose #'((mute 6)
307 %% C major for guitar, with capo on third fret
310 % 110% of default size
311 \override #'(size . 1.1) {
312 \override #'(fret-diagram-details . (
313 (number-type . roman-upper)
314 (dot-label-font-mag . 0.9)
316 (fret-label-vertical-offset . 0.5)
317 (xo-font-magnification . 0.4)
318 (xo-padding . 0.3))) {
319 \fret-diagram-verbose #'((mute 6)
332 \override #'(fret-diagram-details . (
333 (finger-code . below-string)
337 \fret-diagram-terse #"x;x;o;2-1;3-2;2-3;"
341 %% simple D chord, large top fret thickness
343 \override #'(fret-diagram-details . (
344 (finger-code . below-string)
347 (top-fret-thickness . 7)
349 \fret-diagram-terse #"x;x;o;2-1;3-2;2-3;"