]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/defining-predefined-fretboards-for-other-instruments.ly
lilypond-book robustness: ensure EOL at the end of @verbatim
[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.13.1"
4
5 \header {
6   lsrtags = "fretted-strings"
7
8 %% Translation of GIT committish: afbff4903c2dcf413255a42e38b1d26435509370
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 %% Translation of GIT committish: cd4950757ab1ab6c89805b0b7c978bfca034f940
28
29   texidocfr = "
30 La liste des diagrammes standards prédéfinis pour la guitare peut être
31  augmentée d'autres définitions spécifiques à d'autres instruments.  
32 Voici comment définir un nouvel accordage ainsi que quelques diagrammes 
33 prédéfinis pour le @qq{cuatro vénézuélien}.
34
35 Cet exemple illustre aussi la manière d'ajouter des doigtés aux 
36 accords ; ils serviront de référence pour la boucle d'accord et seront 
37 indiqués dans les diagrammes et le @code{TabStaff}, mais pas dans la musique. 
38
39 Ces diagrammes ne peuvent pas être transposés, dans la mesure où ils 
40 contiennent des informations sur les cordes.  Ceci est amené à évoluer.
41
42 "
43   doctitlefr = "Création de diagrammes de fret prédéfinis pour d'autres instruments"
44
45 %% Translation of GIT committish: 33f623301a41fcc53efadf96bca1c72834763415
46   texidocde = "
47 Vordefinierte Bunddiagramme können für neue Instrumente hinzugefügt werden
48 neben denen, die schon für die Gitarre definiert sind.  Dieses Schnipsel
49 zeigt, wie man eine neue Saitenstimmung definiert und dann eigene vordefinierte
50 Bunddiagramme bestimmt.  Das Beispiel ist für das venezualische Cuatro.
51
52 Dieses Schnipsel zeigt auch, wie Fingersatz in die Akkorde eingebunden
53 werden kann, um als Referenzpunkt für die Akkordauswahl benutzt werden
54 kann.  Dieser Fingersatz wird im Bunddiagramm und in der Tabulatur,
55 aber nicht in den Noten angezeigt.
56
57 Diese Bunddiagramme sind nicht transponierbar, weil sie Saiteninformationen
58 enthalten.  Das soll in der Zukunft verbessert werden.
59
60 "
61   doctitlede = "Eigene vordefinierte Bunddiagramme für andere Instrumente erstellen"
62
63   texidoc = "
64 Predefined fret diagrams can be added for new instruments in addition
65 to the standards used for guitar.  This file shows how this is done by
66 defining a new string-tuning and a few predefined fretboards for the
67 Venezuelan cuatro.
68
69 This file also shows how fingerings can be included in the chords used
70 as reference points for the chord lookup, and displayed in  the fret
71 diagram and the @code{TabStaff}, but not the music.
72
73
74 These fretboards are not transposable because they contain string
75 information.  This is planned to be corrected in the future. 
76
77 "
78   doctitle = "Defining predefined fretboards for other instruments"
79 } % begin verbatim
80
81 % add FretBoards for the Cuatro
82 %   Note: This section could be put into a separate file
83 %      predefined-cuatro-fretboards.ly
84 %      and \included into each of your compositions
85
86 cuatroTuning = #'(11 18 14 9)
87
88 dSix = { <a\4 b\1 d\3 fis\2> }
89 dMajor = { <a\4 d\1 d\3 fis \2> }
90 aMajSeven = { <a\4 cis\1 e\3 g\2> }
91 dMajSeven = { <a\4 c\1 d\3 fis\2> }
92 gMajor = { <b\4 b\1 d\3 g\2> }
93
94 \storePredefinedDiagram \dSix
95                         #cuatroTuning
96                         #"o;o;o;o;"
97 \storePredefinedDiagram \dMajor
98                         #cuatroTuning
99                         #"o;o;o;3-3;"
100 \storePredefinedDiagram \aMajSeven
101                         #cuatroTuning
102                         #"o;2-2;1-1;2-3;"
103 \storePredefinedDiagram \dMajSeven
104                         #cuatroTuning
105                         #"o;o;o;1-1;"
106 \storePredefinedDiagram \gMajor
107                         #cuatroTuning
108                         #"2-2;o;1-1;o;"
109
110 % end of potential include file /predefined-cuatro-fretboards.ly
111
112
113 #(set-global-staff-size 16)
114
115 primerosNames = \chordmode {
116   d:6 d a:maj7 d:maj7 
117   g
118 }
119 primeros = {
120   \dSix \dMajor \aMajSeven \dMajSeven
121   \gMajor
122 }
123
124 \score {
125   <<
126     \new ChordNames {
127       \set chordChanges = ##t
128       \primerosNames
129     }
130
131     \new Staff {
132       \new Voice \with {
133         \remove "New_fingering_engraver"
134       } 
135       \relative c'' {
136         \primeros
137       }
138     }
139
140     \new FretBoards {
141       \set stringTunings = #cuatroTuning
142       \override FretBoard
143         #'(fret-diagram-details string-count) = #'4
144       \override FretBoard
145         #'(fret-diagram-details finger-code) = #'in-dot
146       \primeros
147     }
148
149     \new TabStaff \relative c'' {
150       \set TabStaff.stringTunings = #cuatroTuning
151       \primeros
152     }
153     
154   >>
155
156   \layout { 
157     \context {
158       \Score
159       \override SpacingSpanner
160         #'base-shortest-duration = #(ly:make-moment 1 16)
161     }
162   }
163   \midi { }
164 }