]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/defining-predefined-fretboards-for-other-instruments.ly
Change stringTunings from list of semitones to list of pitches
[lilypond.git] / Documentation / snippets / defining-predefined-fretboards-for-other-instruments.ly
1 % Do not edit this file; it is automatically
2 % generated from Documentation/snippets/new
3 % This file is in the public domain.
4 %% Note: this file works from version 2.13.46
5 \version "2.13.46"
6
7 \header {
8 %% Translation of GIT committish: a874fda3641c9e02f61be5c41b215b8304b8ed00
9   texidoces = "
10
11 Se pueden añadir diagramas de posiciones predefinidas para
12 instrumentos nuevos además de los estándar que se usan para la
13 guitarra.  Este archivo muestra cómo se hace, definiendo una afinación
14 nueva y unas cuantas posiciones para el cuatro venezolano.
15
16 Este archivo también muestra cómo se pueden incluir las digitaciones
17 en los acordes que se usan como puntos de referencia para la búsqueda
18 de acordes en la tabla, y mostrarse en el diagrama de posiciones y la
19 tablatura @code{TabStaff}, pero no en la música.
20
21 Estas posiciones no se pueden transportar porque contienen información
22 de las cuerdas.  Hay planes para corregir esto en un futuro.
23
24 "
25   doctitlees = "Definición de posiciones predefinidas para otros instrumentos"
26
27
28 %% Translation of GIT committish: f23429bc5cfa9d141ef7b4509afc46c140308a1e
29   texidocde = "
30 Vordefinierte Bunddiagramme können für neue Instrumente hinzugefügt werden
31 neben denen, die schon für die Gitarre definiert sind.  Dieses Schnipsel
32 zeigt, wie man eine neue Saitenstimmung definiert und dann eigene vordefinierte
33 Bunddiagramme bestimmt.  Das Beispiel ist für das venezualische Cuatro.
34
35 Dieses Schnipsel zeigt auch, wie Fingersatz in die Akkorde eingebunden
36 werden kann, um als Referenzpunkt für die Akkordauswahl benutzt werden
37 kann.  Dieser Fingersatz wird im Bunddiagramm und in der Tabulatur,
38 aber nicht in den Noten angezeigt.
39
40 Diese Bunddiagramme sind nicht transponierbar, weil sie Saiteninformationen
41 enthalten.  Das soll in der Zukunft verbessert werden.
42
43 "
44   doctitlede = "Eigene vordefinierte Bunddiagramme für andere Instrumente erstellen"
45
46 %% Translation of GIT committish: 4ab2514496ac3d88a9f3121a76f890c97cedcf4e
47
48   texidocfr = "
49 La liste des diagrammes standards prédéfinis pour la guitare peut être
50 augmentée d'autres définitions spécifiques à d'autres instruments.
51 Voici comment définir un nouvel accordage ainsi que quelques diagrammes
52 prédéfinis pour le @qq{cuatro vénézuélien}.
53
54 Cet exemple illustre aussi la manière d'ajouter des doigtés aux
55 accords ; ils serviront de référence pour la boucle d'accord et seront
56 indiqués dans les diagrammes et le @code{TabStaff}, mais pas dans la musique.
57
58 Ces diagrammes ne peuvent pas être transposés, dans la mesure où ils
59 contiennent des informations sur les cordes.  Ceci est amené à évoluer.
60
61 "
62   doctitlefr = "Création de diagrammes de fret prédéfinis pour d'autres instruments"
63
64
65   lsrtags = "fretted-strings"
66
67 %% Translation of GIT committish: cde045f4e833aa491fb63f2222e14bef49507577
68   texidoces = "
69
70 Se pueden añadir diagramas de posiciones predefinidas para
71 instrumentos nuevos además de los estándar que se usan para la
72 guitarra.  Este archivo muestra cómo se hace, definiendo una afinación
73 nueva y unas cuantas posiciones para el cuatro venezolano.
74
75 Este archivo también muestra cómo se pueden incluir las digitaciones
76 en los acordes que se usan como puntos de referencia para la búsqueda
77 de acordes en la tabla, y mostrarse en el diagrama de posiciones y la
78 tablatura @code{TabStaff}, pero no en la música.
79
80 Estas posiciones no se pueden transportar porque contienen información
81 de las cuerdas.  Hay planes para corregir esto en un futuro.
82
83 "
84   doctitlees = "Definición de posiciones predefinidas para otros instrumentos"
85
86
87 %% Translation of GIT committish: f23429bc5cfa9d141ef7b4509afc46c140308a1e
88   texidocde = "
89 Vordefinierte Bunddiagramme können für neue Instrumente hinzugefügt werden
90 neben denen, die schon für die Gitarre definiert sind.  Dieses Schnipsel
91 zeigt, wie man eine neue Saitenstimmung definiert und dann eigene vordefinierte
92 Bunddiagramme bestimmt.  Das Beispiel ist für das venezualische Cuatro.
93
94 Dieses Schnipsel zeigt auch, wie Fingersatz in die Akkorde eingebunden
95 werden kann, um als Referenzpunkt für die Akkordauswahl benutzt werden
96 kann.  Dieser Fingersatz wird im Bunddiagramm und in der Tabulatur,
97 aber nicht in den Noten angezeigt.
98
99 Diese Bunddiagramme sind nicht transponierbar, weil sie Saiteninformationen
100 enthalten.  Das soll in der Zukunft verbessert werden.
101
102 "
103   doctitlede = "Eigene vordefinierte Bunddiagramme für andere Instrumente erstellen"
104
105 %% Translation of GIT committish: 4ab2514496ac3d88a9f3121a76f890c97cedcf4e
106
107   texidocfr = "
108 La liste des diagrammes standards prédéfinis pour la guitare peut être
109 augmentée d'autres définitions spécifiques à d'autres instruments.
110 Voici comment définir un nouvel accordage ainsi que quelques diagrammes
111 prédéfinis pour le @qq{cuatro vénézuélien}.
112
113 Cet exemple illustre aussi la manière d'ajouter des doigtés aux
114 accords ; ils serviront de référence pour la boucle d'accord et seront
115 indiqués dans les diagrammes et le @code{TabStaff}, mais pas dans la musique.
116
117 Ces diagrammes ne peuvent pas être transposés, dans la mesure où ils
118 contiennent des informations sur les cordes.  Ceci est amené à évoluer.
119
120 "
121   doctitlefr = "Création de diagrammes de fret prédéfinis pour d'autres instruments"
122
123
124   texidoc = "
125 Predefined fret diagrams can be added for new instruments in addition
126 to the standards used for guitar.  This file shows how this is done by
127 defining a new string-tuning and a few predefined fretboards for the
128 Venezuelan cuatro.
129
130 This file also shows how fingerings can be included in the chords used
131 as reference points for the chord lookup, and displayed in  the fret
132 diagram and the @code{TabStaff}, but not the music.
133
134
135 These fretboards are not transposable because they contain string
136 information.  This is planned to be corrected in the future.
137
138 "
139   doctitle = "Defining predefined fretboards for other instruments"
140 } % begin verbatim
141
142
143 % add FretBoards for the Cuatro
144 %   Note: This section could be put into a separate file
145 %      predefined-cuatro-fretboards.ly
146 %      and \included into each of your compositions
147
148 cuatroTuning = #`(,(ly:make-pitch 0 6 0)
149                   ,(ly:make-pitch 1 3 SHARP)
150                   ,(ly:make-pitch 1 1 0)
151                   ,(ly:make-pitch 0 5 0))
152
153 dSix = { <a\4 b\1 d\3 fis\2> }
154 dMajor = { <a\4 d\1 d\3 fis \2> }
155 aMajSeven = { <a\4 cis\1 e\3 g\2> }
156 dMajSeven = { <a\4 c\1 d\3 fis\2> }
157 gMajor = { <b\4 b\1 d\3 g\2> }
158
159 \storePredefinedDiagram #default-fret-table \dSix
160                         #cuatroTuning
161                         #"o;o;o;o;"
162 \storePredefinedDiagram #default-fret-table \dMajor
163                         #cuatroTuning
164                         #"o;o;o;3-3;"
165 \storePredefinedDiagram #default-fret-table \aMajSeven
166                         #cuatroTuning
167                         #"o;2-2;1-1;2-3;"
168 \storePredefinedDiagram #default-fret-table \dMajSeven
169                         #cuatroTuning
170                         #"o;o;o;1-1;"
171 \storePredefinedDiagram #default-fret-table \gMajor
172                         #cuatroTuning
173                         #"2-2;o;1-1;o;"
174
175 % end of potential include file /predefined-cuatro-fretboards.ly
176
177
178 #(set-global-staff-size 16)
179
180 primerosNames = \chordmode {
181   d:6 d a:maj7 d:maj7
182   g
183 }
184 primeros = {
185   \dSix \dMajor \aMajSeven \dMajSeven
186   \gMajor
187 }
188
189 \score {
190   <<
191     \new ChordNames {
192       \set chordChanges = ##t
193       \primerosNames
194     }
195
196     \new Staff {
197       \new Voice \with {
198         \remove "New_fingering_engraver"
199       }
200       \relative c'' {
201         \primeros
202       }
203     }
204
205     \new FretBoards {
206       \set stringTunings = #cuatroTuning
207 %      \override FretBoard
208 %        #'(fret-diagram-details string-count) = #'4
209       \override FretBoard
210         #'(fret-diagram-details finger-code) = #'in-dot
211       \primeros
212     }
213
214     \new TabStaff \relative c'' {
215       \set TabStaff.stringTunings = #cuatroTuning
216       \primeros
217     }
218
219   >>
220
221   \layout {
222     \context {
223       \Score
224       \override SpacingSpanner
225         #'base-shortest-duration = #(ly:make-moment 1 16)
226     }
227   }
228   \midi { }
229 }