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