]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/defining-predefined-fretboards-for-other-instruments.ly
LSR: Update.
[lilypond.git] / input / lsr / defining-predefined-fretboards-for-other-instruments.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.12.3"
4
5 \header {
6   lsrtags = "fretted-strings"
7
8   texidoces = "
9
10 Se pueden añadir diagramas de posiciones predefinidas para
11 instrumentos nuevos además de los estándar que se usan para la
12 guitarra.  Este archivo muestra cómo se hace, definiendo una afinación
13 nueva y unas cuantas posiciones para el cuatro venezolano.
14
15 Este archivo también muestra cómo se pueden incluir las digitaciones
16 en los acordes que se usan como puntos de referencia para la búsqueda
17 de acordes en la tabla, y mostrarse en el diagrama de posiciones y la
18 tablatura @code{TabStaff}, pero no en la música.
19
20 Estas posiciones no se pueden transportar porque contienen información
21 de las cuerdas.  Hay planes para corregir esto en un futuro.
22
23 "
24   doctitlees = "Definición de posiciones predefinidas para otros instrumentos"
25
26 %% Translation of GIT committish: 3f880f886831b8c72c9e944b3872458c30c6c839
27
28   texidocfr = "
29 La liste des diagrammes standards prédéfinis pour la guitare peut être
30  augmentée d'autres définitions spécifiques à d'autres instruments.  
31 Voici comment définir un nouvel accordage ainsi que quelques diagrammes 
32 prédéfinis pour le @qq{cuatro vénézuélien}.
33
34 Cet exemple illustre aussi la manière d'ajouter des doigtés aux 
35 accords ; ils serviront de référence pour la boucle d'accord et seront 
36 indiqués dans les diagrammes et le @code{TabStaff}, mais pas dans la musique. 
37
38 Ces diagrémmes ne peuvent pas être transposés, dans la mesure où ils 
39 contiennent des informations sur les condes.  Ceci est amené à évoluer.
40
41 "
42   doctitlefr = "Création de diagrammes de fret prédéfinis pour 
43 d'autres instruments"
44
45   texidoc = "
46 Predefined fret diagrams can be added for new instruments in addition
47 to the standards used for guitar.  This file shows how this is done by
48 defining a new string-tuning and a few predefined fretboards for the
49 Venezuelan cuatro.
50
51 This file also shows how fingerings can be included in the chords used
52 as reference points for the chord lookup, and displayed in  the fret
53 diagram and the @code{TabStaff}, but not the music.
54
55
56 These fretboards are not transposable because they contain string
57 information.  This is planned to be corrected in the future. 
58
59 "
60   doctitle = "Defining predefined fretboards for other instruments"
61 } % begin verbatim
62
63 % add FretBoards for the Cuatro
64 %   Note: This section could be put into a separate file
65 %      predefined-cuatro-fretboards.ly
66 %      and \included into each of your compositions
67
68 cuatroTuning = #'(11 18 14 9)
69
70 dSix = { <a\4 b\1 d\3 fis\2> }
71 dMajor = { <a\4 d\1 d\3 fis \2> }
72 aMajSeven = { <a\4 cis\1 e\3 g\2> }
73 dMajSeven = { <a\4 c\1 d\3 fis\2> }
74 gMajor = { <b\4 b\1 d\3 g\2> }
75
76 \storePredefinedDiagram \dSix
77                         #cuatroTuning
78                         #"o;o;o;o;"
79 \storePredefinedDiagram \dMajor
80                         #cuatroTuning
81                         #"o;o;o;3-3;"
82 \storePredefinedDiagram \aMajSeven
83                         #cuatroTuning
84                         #"o;2-2;1-1;2-3;"
85 \storePredefinedDiagram \dMajSeven
86                         #cuatroTuning
87                         #"o;o;o;1-1;"
88 \storePredefinedDiagram \gMajor
89                         #cuatroTuning
90                         #"2-2;o;1-1;o;"
91
92 % end of potential include file /predefined-cuatro-fretboards.ly
93
94
95 #(set-global-staff-size 16)
96
97 primerosNames = \chordmode {
98   d:6 d a:maj7 d:maj7 
99   g
100 }
101 primeros = {
102   \dSix \dMajor \aMajSeven \dMajSeven
103   \gMajor
104 }
105
106 \score {
107   <<
108     \new ChordNames {
109       \set chordChanges = ##t
110       \primerosNames
111     }
112
113     \new Staff {
114       \new Voice \with {
115         \remove "New_fingering_engraver"
116       } 
117       \relative c'' {
118         \primeros
119       }
120     }
121
122     \new FretBoards {
123       \set stringTunings = #cuatroTuning
124       \override FretBoard
125         #'(fret-diagram-details string-count) = #'4
126       \override FretBoard
127         #'(fret-diagram-details finger-code) = #'in-dot
128       \primeros
129     }
130
131     \new TabStaff \relative c'' {
132       \set TabStaff.stringTunings = #cuatroTuning
133       \primeros
134     }
135     
136   >>
137
138   \layout { 
139     \context {
140       \Score
141       \override SpacingSpanner
142         #'base-shortest-duration = #(ly:make-moment 1 16)
143     }
144   }
145   \midi { }
146 }