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 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"
24 \chords { c1 | c | c | d }
28 % Set global properties of fret diagram
29 \override TextScript.size = #'1.2
30 \override TextScript.fret-diagram-details.finger-code = #'in-dot
31 \override TextScript.fret-diagram-details.dot-color = #'white
33 %% C major for guitar, no barre, using defaults
35 c'1^\markup { \fret-diagram-terse #"x;3-3;2-2;o;1-1;o;" }
37 %% C major for guitar, barred on third fret
40 % roman fret label, finger labels below string, straight barre
43 \override #'(size . 1.0) {
44 \override #'(fret-diagram-details . (
45 (number-type . roman-lower)
46 (finger-code . in-dot)
47 (barre-type . straight))) {
48 \fret-diagram-verbose #'((mute 6)
59 %% C major for guitar, barred on third fret
61 % landscape orientation, arabic numbers, M for mute string
62 % no barre, fret label down or left, small mute label font
64 \override #'(fret-diagram-details . (
65 (finger-code . below-string)
66 (number-type . arabic)
69 (orientation . landscape)
71 (xo-font-magnification . 0.4)
72 (xo-padding . 0.3))) {
73 \fret-diagram-verbose #'((mute 6)
85 % larger dots, centered dots, fewer frets
88 \override #'(fret-diagram-details . (
89 (finger-code . below-string)
93 \fret-diagram-terse #"x;x;o;2-1;3-2;2-3;"