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