1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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 Fret diagram properties can be set through
14 @code{'fret-diagram-details}. For markup fret diagrams, overrides can
15 be applied to the @code{Voice.TextScript} object or directly to the
19 doctitle = "Customizing markup fret diagrams"
23 \chords { c1 | c | c | d }
27 % Set global properties of fret diagram
28 \override TextScript.size = #'1.2
29 \override TextScript.fret-diagram-details.finger-code = #'in-dot
30 \override TextScript.fret-diagram-details.dot-color = #'white
32 %% C major for guitar, no barre, using defaults
34 c'1^\markup { \fret-diagram-terse #"x;3-3;2-2;o;1-1;o;" }
36 %% C major for guitar, barred on third fret
39 % roman fret label, finger labels below string, straight barre
42 \override #'(size . 1.0) {
43 \override #'(fret-diagram-details . (
44 (number-type . roman-lower)
45 (finger-code . in-dot)
46 (barre-type . straight))) {
47 \fret-diagram-verbose #'((mute 6)
58 %% C major for guitar, barred on third fret
60 % landscape orientation, arabic numbers, M for mute string
61 % no barre, fret label down or left, small mute label font
63 \override #'(fret-diagram-details . (
64 (finger-code . below-string)
65 (number-type . arabic)
68 (orientation . landscape)
70 (xo-font-magnification . 0.4)
71 (xo-padding . 0.3))) {
72 \fret-diagram-verbose #'((mute 6)
84 % larger dots, centered dots, fewer frets
87 \override #'(fret-diagram-details . (
88 (finger-code . below-string)
92 \fret-diagram-terse #"x;x;o;2-1;3-2;2-3;"