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