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