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