]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/flamenco-notation.ly
2c55485526c421e615b1c3d75a49208cf94a986e
[lilypond.git] / Documentation / snippets / flamenco-notation.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 = "specific-notation, version-specific, stylesheet, fretted-strings"
11
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
13
14   texidoces = "
15
16 Para la guitarra flamenca se utilizan ciertos elementos de notación
17 especiales:
18
19
20 @itemize
21
22 @item un símbolo para indicar un golpe sobre la caja de la guitarra
23 con el nudillo del dedo anular
24
25 @item una flecha para indicar la dirección de los rasgueos
26
27 @item distintas legras para las digitaciones (@qq{p}: pulgar, @qq{i}:
28 índice, @qq{m}: medio, @qq{a}: anular y @qq{x}: meñique)
29
30 @item Rasgueados de 3 y cautro dedos: hacia arriba con todos los dedos
31 y terminando con arriba y abajo con el índice
32
33 @item abanicos: rasgueos en serie con el pulgar, hacia abajo y el
34 meñique y el índice hacia arriba (hay también un abanico 2 en el que
35 los dedos medio y anular se usan en lugar del meñique)
36
37 @item alza púa: pulsaciones rápidas con el pulgar
38
39 @end itemize
40
41
42 Casi todas las figuras utilizan flechas combinadas con digitaciones;
43 con los abanicos y los rasgueados, las notas se imprimen con cabeza
44 sólo en el primer acorde.
45
46 Este fragmento de código contiene código de tipo cabecera que se puede
47 copiar como @file{flamenco.ly} e incluirse en los documentos fuente.
48
49 "
50   doctitlees = "Notación del flamenco"
51
52 %% Translation of GIT committish: 30339cb3706f6399c84607426988b25f79b4998c
53   texidocfr = "
54 La guitare flamenco fait appel à des éléments de notation particuliers :
55
56 -- le @emph{golpe} : coup frappé sur la caisse de résonance avec
57    l'ongle de l'annulaire,
58
59 -- une flèche pour indiquer le sens des butés (@emph{strokes}),
60
61 -- les doigtés : @qq{p} pouce, @qq{i} index, @qq{m}  majeur, @qq{a}
62    annulaire et @qq{x} auriculaire,
63
64 -- les @emph{rasgueados} sur trois ou quatre doigts : grattage des
65    cordes en étendant les doigts rapidement les uns après les autres
66    dans un mouvement continu, se terminant sur l'index,
67
68 -- les @emph{abanicos} : séries de butés du pouce, index et auriculaire.
69    Il existe aussi un @emph{abanico 2} pour lequel l'index et
70    l'annulaire remplacent l'auriculaire.
71
72 -- @emph{alza púa} : jeu rapide du pouce.
73
74 La plupart de ces symboles utilisent une flèche en plus des doigtés.
75 Dans le cas d'un @emph{abanico}, les têtes de note ne sont imprimées que
76 pour le premier accord.
77
78 Le début du code ci-dessous répertorie le paramétrage de ces différents
79 symboles, que vous pouvez copier dans un fichier @file{flamenco.ly}
80 pour inclusion dans vos propres compositions.
81
82 "
83   doctitlefr = "Notation de flamenco"
84
85   texidoc = "
86 For flamenco guitar, special notation is used:
87
88
89 * a golpe symbol to indicate a slap on the guitar body with the nail of
90 the ring finger * an arrow to indicate (the direction of) strokes *
91 different letters for fingering (@qq{p}: thumb, @qq{i}: index finger,
92 @qq{m}: middle finger, @qq{a}: ring finger and @qq{x}: little finger) *
93 3- and 4-finger rasgueados; stroke upwards with all fingers, ending
94 with an up- and down using the index finger * abanicos: strokes (in
95 tuples) with thumb (down), little and index finger (both up). There's
96 also an abanico 2 where middle and ring finger are used instead of the
97 little finger. * alza pua: fast playing with the thumb
98
99
100 Most figures use arrows in combination with fingering; with abanicos
101 and rasgueados, noteheads are printed only for the first chord.
102
103 This snippet contains some header-like code that can be copied as
104 @samp{flamenco.ly} and included in source files.
105
106 "
107   doctitle = "Flamenco notation"
108 } % begin verbatim
109
110
111 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
112 %%%%%%%  Cut here ----- Start 'flamenco.ly'
113
114 % Text indicators
115 abanico = \markup { \italic Abanico }
116 rasgueaso = \markup { \italic Ras. }
117 alzapua = \markup { \italic Alzapua }
118
119 % Finger stroke symbols
120 strokeUp = \markup { \postscript #"
121   0.1     setlinewidth
122   0.5 0   moveto
123   0.5 2   lineto
124   0.2 1.4 lineto
125   0.5 2   moveto
126   0.8 1.4 lineto
127   stroke
128 "}
129
130 strokeDown = \markup { \postscript #"
131   0.1     setlinewidth
132   0.5 2   moveto
133   0.5 0   lineto
134   0.2 0.6 lineto
135   0.5 0   moveto
136   0.8 0.6 lineto
137   stroke
138 "}
139
140 % Golpe symbol
141 golpe = \markup { \postscript #"
142   0.2 setlinewidth
143   0 0 moveto
144   1 0 lineto
145   1 1 lineto
146   stroke
147   "\postscript #"
148   0.1       setlinewidth
149   -0.6 -0.1  moveto
150   -0.6  1.0 lineto
151   0.5  1.0 lineto
152   stroke
153 "}
154
155 strokeUpGolpe = \markup { \column { \golpe \line { \strokeUp } } }
156 iUpGolpe = \markup { \column { \golpe \line { \small i } \line { \strokeUp } } }
157
158 % Strokes for all fingers
159 pUp   = \markup { \column { \small p \line { \strokeUp } } }
160 pDown = \markup { \column { \small p \line { \strokeDown } } }
161 iUp   = \markup { \column { \small i \line { \strokeUp } } }
162 iDown = \markup { \column { \small i \line { \strokeDown } } }
163 mUp   = \markup { \column { \small m \line { \strokeUp } } }
164 mDown = \markup { \column { \small m \line { \strokeDown } } }
165 aUp   = \markup { \column { \small a \line { \strokeUp } } }
166 aDown = \markup { \column { \small a \line { \strokeDown } } }
167 xUp   = \markup { \column { \small x \line { \strokeUp } } }
168 xDown = \markup { \column { \small x \line { \strokeDown } } }
169
170
171 % Just handy :)
172 tupletOff = {
173   \once \override TupletNumber #'stencil = ##f
174   \once \override TupletBracket #'stencil = ##f
175 }
176
177 tupletsOff = {
178   \override TupletNumber #'stencil = ##f
179   \override TupletBracket #'bracket-visibility = #'if-no-beam
180 }
181
182 tupletsOn = {
183   \override TupletBracket #'bracket-visibility = #'default
184   \revert TupletNumber #'stencil
185 }
186
187 headsOff = {
188   \override TabNoteHead #'transparent = ##t
189   \override NoteHead #'transparent = ##t
190   \override NoteHead #'no-ledgers = ##t
191 }
192
193 headsOn = {
194   \override TabNoteHead #'transparent = ##f
195   \override NoteHead #'transparent = ##f
196   \override NoteHead #'no-ledgers = ##f
197 }
198
199 %%%%%%%  Cut here ----- End 'flamenco.ly'
200 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
201
202 part = \relative c' {
203   <a, e' a cis e>8^\iUp
204   <a e' a cis e>8^\iDown
205   r4
206   r2^\golpe
207
208   <a e' a cis e>8^\iUp
209   <a e' a cis e>8^\iDown
210   <a e' a cis e>8^\iUpGolpe
211   <a e' a cis e>8^\iDown
212   r2
213
214   <a e' a cis e>16^\aUp
215   \headsOff
216   <a e' a cis e>^\mUp
217   <a e' a cis e>^\iUp
218   <a e' a cis e>^\iDown~
219   \headsOn
220   <a e' a cis e>2
221   r4
222
223   \tupletOff
224   \times 4/5 {
225     <a e' a cis e>16^\xUp
226     \headsOff
227     <a e' a cis e>^\aUp
228     <a e' a cis e>^\mUp
229     <a e' a cis e>^\iUp
230     <a e' a cis e>^\iDown~
231     \headsOn
232   }
233   <a e' a cis e>2
234   r4
235
236   \tupletsOff
237   \times 2/3 {
238     <a e' a cis e>8^\pDown
239     \headsOff
240     <a e' a cis e>^\xUp
241     <a e' a cis e>^\iUp
242     \headsOn
243   }
244
245   \times 2/3 {
246     <a e' a cis e>8^\pDown
247     \headsOff
248     <a e' a cis e>^\xUp
249     <a e' a cis e>^\iUp
250     \headsOn
251   }
252
253   \times 2/3 {
254     <a e' a cis e>8^\pDown
255     \headsOff
256     <a e' a cis e>^\xUp
257     <a e' a cis e>^\iUp
258     \headsOn
259   }
260   \times 2/3 {
261     <a e' a cis e>8^\pDown
262     \headsOff
263     <a e' a cis e>^\xUp
264     <a e' a cis e>^\iUp
265     \headsOn
266   }
267
268   \tupletsOff
269   \override Beam #'positions = #'(2 . 2)
270   \times 2/3 {
271     a8^\markup{ \small p }
272     <e' a>^\strokeUpGolpe
273     <e a>^\strokeDown
274   }
275   \times 2/3 {
276     a,8^\markup{ \small p }
277     <e' a>^\strokeUpGolpe
278     <e a>^\strokeDown
279   }
280   \times 2/3 {
281     a,8^\markup{ \small p }
282     <e' a>^\strokeUpGolpe
283     <e a>^\strokeDown
284   }
285   \times 2/3 {
286     a,8^\markup{ \small p }
287     <e' a>^\strokeUpGolpe
288     <e a>^\strokeDown
289   }
290   \tupletsOn
291
292   \once \override TextScript #'extra-offset = #'(0 . -1)
293   <g, b f'>1_\golpe^\mUp
294   \bar "|."
295 }
296
297 \score {
298   \new StaffGroup <<
299     \context Staff = "part" <<
300       \clef G
301       \transpose c c'
302       {
303         \part
304       }
305     >>
306     \context TabStaff {
307       \part
308     }
309   >>
310   \layout {
311     ragged-right = ##t
312   }
313 }