4 lsrtags = "fretted-strings"
7 Predefined fret diagrams can be added for new instruments in addition
8 to the standards used for guitar. This file shows how this is done by
9 defining a new string-tuning and a few predefined fretboards for the
12 This file also shows how fingerings can be included in the chords used
13 as reference points for the chord lookup, and displayed in the fret
14 diagram and the @code{TabStaff}, but not the music.
17 These fretboards are not transposable because they contain string
18 information. This is planned to be corrected in the future.
21 doctitle = "Defining predefined fretboards for other instruments"
24 % add FretBoards for the Cuatro
25 % Note: This section could be put into a separate file
26 % predefined-cuatro-fretboards.ly
27 % and \included into each of your compositions
29 cuatroTuning = #`(,(ly:make-pitch 0 6 0)
30 ,(ly:make-pitch 1 3 SHARP)
31 ,(ly:make-pitch 1 1 0)
32 ,(ly:make-pitch 0 5 0))
34 dSix = { <a\4 b\1 d\3 fis\2> }
35 dMajor = { <a\4 d\1 d\3 fis \2> }
36 aMajSeven = { <a\4 cis\1 e\3 g\2> }
37 dMajSeven = { <a\4 c\1 d\3 fis\2> }
38 gMajor = { <b\4 b\1 d\3 g\2> }
40 \storePredefinedDiagram #default-fret-table \dSix
43 \storePredefinedDiagram #default-fret-table \dMajor
46 \storePredefinedDiagram #default-fret-table \aMajSeven
49 \storePredefinedDiagram #default-fret-table \dMajSeven
52 \storePredefinedDiagram #default-fret-table \gMajor
56 % end of potential include file /predefined-cuatro-fretboards.ly
59 #(set-global-staff-size 16)
61 primerosNames = \chordmode {
66 \dSix \dMajor \aMajSeven \dMajSeven
73 \set chordChanges = ##t
79 \remove "New_fingering_engraver"
87 \set stringTunings = #cuatroTuning
89 % #'(fret-diagram-details string-count) = #'4
91 #'(fret-diagram-details finger-code) = #'in-dot
95 \new TabStaff \relative c'' {
96 \set TabStaff.stringTunings = #cuatroTuning
105 \override SpacingSpanner
106 #'base-shortest-duration = #(ly:make-moment 1 16)