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. Thanks to Jesus Guillermo
8 Andrade for the string-tuning and fretboard information.
10 This file also shows how fingerings can be included in the chords
11 used as reference points for the chord lookup, and displayed in
12 the fret diagram and the TabStaff, but not the music.
14 These fretboards are not transposable because they contain string
15 information. This is planned to be corrected in the future.
18 doctitle = "Defining predefined fretboards for other instruments"
21 % add FretBoards for the Cuatro
22 % Note: This section could be put into a separate file
23 % predefined-cuatro-fretboards.ly
24 % and \included into each of your compositions
26 cuatroTuning = #'(11 18 14 9)
28 dSix = {<a\4 b\1 d\3 fis\2> }
29 dMajor = { <a\4 d\1 d\3 fis \2> }
30 aMajSeven = {<a\4 cis\1 e\3 g\2>}
31 dMajSeven = {<a\4 c\1 d\3 fis\2>}
32 gMajor = {<b\4 b\1 d\3 g\2>}
34 \storePredefinedDiagram \dSix
37 \storePredefinedDiagram \dMajor
40 \storePredefinedDiagram \aMajSeven
43 \storePredefinedDiagram \dMajSeven
46 \storePredefinedDiagram \gMajor
50 % end of potential include file /predefined-cuatro-fretboards.ly
53 #(set-global-staff-size 16)
55 primerosNames = \chordmode {
60 \dSix \dMajor \aMajSeven \dMajSeven
67 \set chordChanges = ##t
73 \remove New_fingering_engraver
82 \set stringTunings = #cuatroTuning
83 \override FretBoard #'fret-diagram-details
85 \override FretBoard #'fret-diagram-details
86 #'finger-code = #'in-dot
90 \new TabStaff \relative c'' {
91 \set TabStaff.stringTunings = #cuatroTuning
100 \override SpacingSpanner
101 #'base-shortest-duration = #(ly:make-moment 1 16)