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