3 lsrtags
= "fretted-strings"
4 texidoc
= "Predefined fret diagrams can be added for new instruments
5 in addition to the standards used for guitar. This file shows how
6 this is done by defining a new string-tuning and a few predefined
7 fretboards for the Venezuelan cuatro.
9 This file also shows how fingerings can be included in the chords
10 used as reference points for the chord lookup, and displayed in
11 the fret diagram and the @code{TabStaff}, but not the music.
13 These fretboards are not transposable because they contain string
14 information. This is planned to be corrected in the future.
17 doctitle
= "Defining predefined fretboards for other instruments"
20 %LSR: Thanks to Jesus Guillermo Andrade for the string-tuning
21 %LSR: and fretboard information.
23 % add FretBoards for the Cuatro
24 % Note: This section could be put into a separate file
25 % predefined-cuatro-fretboards.ly
26 % and \included into each of your compositions
28 cuatroTuning
= #'(11 18 14 9)
30 dSix
= { <a\4 b\1 d\3 fis\2> }
31 dMajor
= { <a\4 d\1 d\3 fis \2> }
32 aMajSeven
= { <a\4 cis\1 e\3 g\2> }
33 dMajSeven
= { <a\4 c\1 d\3 fis\2> }
34 gMajor
= { <b\4 b\1 d\3 g\2> }
36 \storePredefinedDiagram \dSix
39 \storePredefinedDiagram \dMajor
42 \storePredefinedDiagram \aMajSeven
45 \storePredefinedDiagram \dMajSeven
48 \storePredefinedDiagram \gMajor
52 % end of potential include file /predefined-cuatro-fretboards.ly
55 #(set-global-staff-size
16)
57 primerosNames
= \chordmode {
62 \dSix \dMajor \aMajSeven \dMajSeven
69 \set chordChanges
= ##t
75 \remove "New_fingering_engraver"
83 \set stringTunings
= #cuatroTuning
85 #'(fret-diagram-details string-count
) = #'4
87 #'(fret-diagram-details finger-code
) = #'in-dot
91 \new TabStaff
\relative c'' {
92 \set TabStaff
.stringTunings
= #cuatroTuning
101 \override SpacingSpanner
102 #'base-shortest-duration
= #(ly
:make-moment
1 16)