1 %%%% This file is part of LilyPond, the GNU music typesetter.
3 %%%% Copyright (C) 2008--2014 by Jonathan Kulp
5 %%%% LilyPond is free software: you can redistribute it and/or modify
6 %%%% it under the terms of the GNU General Public License as published by
7 %%%% the Free Software Foundation, either version 3 of the License, or
8 %%%% (at your option) any later version.
10 %%%% LilyPond is distributed in the hope that it will be useful,
11 %%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
12 %%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 %%%% GNU General Public License for more details.
15 %%%% You should have received a copy of the GNU General Public License
16 %%%% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 % Add ninth chords to predefined fret diagrams for standard guitar tunings
22 \addChordShape #'c:9 #guitar-tuning #"x;3-2;2-1;3-3-(;3-3;3-3-);"
23 \addChordShape #'f:9 #guitar-tuning #"1-1-(;3-3;1-1;2-2;1-1-);3-4;"
25 \storePredefinedDiagram #default-fret-table \chordmode {c:9}
27 #(chord-shape 'c:9 guitar-tuning)
28 \storePredefinedDiagram #default-fret-table \chordmode {cis:9}
30 #(offset-fret 1 (chord-shape 'c:9 guitar-tuning))
31 \storePredefinedDiagram #default-fret-table \chordmode {des:9}
33 #(offset-fret 1 (chord-shape 'c:9 guitar-tuning))
34 \storePredefinedDiagram #default-fret-table \chordmode {d:9}
36 #(offset-fret 2 (chord-shape 'c:9 guitar-tuning))
37 \storePredefinedDiagram #default-fret-table \chordmode {dis:9}
39 #(offset-fret 3 (chord-shape 'c:9 guitar-tuning))
40 \storePredefinedDiagram #default-fret-table \chordmode {ees:9}
42 #(offset-fret 3 (chord-shape 'c:9 guitar-tuning))
43 \storePredefinedDiagram #default-fret-table \chordmode {e:9}
46 \storePredefinedDiagram #default-fret-table \chordmode {f:9}
48 #(chord-shape 'f:9 guitar-tuning)
49 \storePredefinedDiagram #default-fret-table \chordmode {fis:9}
51 #(offset-fret 1 (chord-shape 'f:9 guitar-tuning))
52 \storePredefinedDiagram #default-fret-table \chordmode {ges:9}
54 #(offset-fret 1 (chord-shape 'f:9 guitar-tuning))
55 \storePredefinedDiagram #default-fret-table \chordmode {g:9}
57 #(offset-fret 2 (chord-shape 'f:9 guitar-tuning))
58 \storePredefinedDiagram #default-fret-table \chordmode {gis:9}
60 #(offset-fret 3 (chord-shape 'f:9 guitar-tuning))
61 \storePredefinedDiagram #default-fret-table \chordmode {aes:9}
63 #(offset-fret 3 (chord-shape 'f:9 guitar-tuning))
64 \storePredefinedDiagram #default-fret-table \chordmode {a:9}
66 #(offset-fret 4 (chord-shape 'f:9 guitar-tuning))
67 \storePredefinedDiagram #default-fret-table \chordmode {ais:9}
69 #(offset-fret 5 (chord-shape 'f:9 guitar-tuning))
70 \storePredefinedDiagram #default-fret-table \chordmode {bes:9}
72 #(offset-fret 5 (chord-shape 'f:9 guitar-tuning))
73 \storePredefinedDiagram #default-fret-table \chordmode {b:9}
75 #(offset-fret -1 (chord-shape 'c:9 guitar-tuning))