]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/flamenco-notation.ly
5eebd591dfc6c757a6a3ac8a7dc23cce06f204eb
[lilypond.git] / Documentation / snippets / flamenco-notation.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.13.36
8 \version "2.13.36"
9
10 \header {
11 %% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
12
13   texidoces = "
14
15 Para la guitarra flamenca se utilizan ciertos elementos de notación
16 especiales:
17
18
19 @itemize
20
21 @item un símbolo para indicar un golpe sobre la caja de la guitarra
22 con el nudillo del dedo anular
23
24 @item una flecha para indicar la dirección de los rasgueos
25
26 @item distintas legras para las digitaciones (@qq{p}: pulgar, @qq{i}:
27 índice, @qq{m}: medio, @qq{a}: anular y @qq{x}: meñique)
28
29 @item Rasgueados de 3 y cautro dedos: hacia arriba con todos los dedos
30 y terminando con arriba y abajo con el índice
31
32 @item abanicos: rasgueos en serie con el pulgar, hacia abajo y el
33 meñique y el índice hacia arriba (hay también un abanico 2 en el que
34 los dedos medio y anular se usan en lugar del meñique)
35
36 @item alza púa: pulsaciones rápidas con el pulgar
37
38 @end itemize
39
40
41 Casi todas las figuras utilizan flechas combinadas con digitaciones;
42 con los abanicos y los rasgueados, las notas se imprimen con cabeza
43 sólo en el primer acorde.
44
45 Este fragmento de código contiene código de tipo cabecera que se puede
46 copiar como @file{flamenco.ly} e incluirse en los documentos fuente.
47
48 "
49   doctitlees = "Notación del flamenco"
50
51   lsrtags = "fretted-strings"
52
53   texidoc = "
54 For flamenco guitar, special notation is used:
55
56
57 @itemize
58
59 @item
60 a golpe symbol to indicate a slap on the guitar body with the nail of
61 the ring finger
62
63 @item
64 an arrow to indicate (the direction of) strokes
65
66 @item
67 different letters for fingering (@qq{p}: thumb, @qq{i}: index finger,
68 @qq{m}: middle finger, @qq{a}: ring finger and @qq{x}: little finger)
69
70 @item
71 3- and 4-finger rasgueados: stroke upwards with all fingers, ending
72 with an up- and down using the index finger
73
74 @item
75 abanicos: strokes (in tuples) with thumb (down), little and index finger
76 (both up) (there is also an abanico 2 where middle and ring finger are
77 used instead of the little finger)
78
79 @item
80 alza pua: fast playing with the thumb
81
82 @end itemize
83
84
85 Most figures use arrows in combination with fingering; with abanicos
86 and rasgueados, noteheads are printed only for the first chord.
87
88 This snippet contains some header-like code that can be copied as
89 @samp{flamenco.ly} and included in source files.
90
91 "
92   doctitle = "Flamenco notation"
93 } % begin verbatim
94
95
96 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
97 %%%%%%%  Cut here ----- Start 'flamenco.ly'
98
99 % Text indicators
100 abanico = \markup { \italic Abanico }
101 rasgueaso = \markup { \italic Ras. }
102 alzapua = \markup { \italic Alzapua }
103
104 % Finger stroke symbols
105 strokeUp = \markup { \postscript #"
106   0.1     setlinewidth
107   0.5 0   moveto
108   0.5 2   lineto
109   0.2 1.4 lineto
110   0.5 2   moveto
111   0.8 1.4 lineto
112   stroke
113 "}
114
115 strokeDown = \markup { \postscript #"
116   0.1     setlinewidth
117   0.5 2   moveto
118   0.5 0   lineto
119   0.2 0.6 lineto
120   0.5 0   moveto
121   0.8 0.6 lineto
122   stroke
123 "}
124
125 % Golpe symbol
126 golpe = \markup { \postscript #"
127   0.2 setlinewidth
128   0 0 moveto
129   1 0 lineto
130   1 1 lineto
131   stroke
132   "\postscript #"
133   0.1       setlinewidth
134   -0.6 -0.1  moveto
135   -0.6  1.0 lineto
136   0.5  1.0 lineto
137   stroke
138 "}
139
140 strokeUpGolpe = \markup { \column { \golpe \line { \strokeUp } } }
141 iUpGolpe = \markup { \column { \golpe \line { \small i } \line { \strokeUp } } }
142
143 % Strokes for all fingers
144 pUp   = \markup { \column { \small p \line { \strokeUp } } }
145 pDown = \markup { \column { \small p \line { \strokeDown } } }
146 iUp   = \markup { \column { \small i \line { \strokeUp } } }
147 iDown = \markup { \column { \small i \line { \strokeDown } } }
148 mUp   = \markup { \column { \small m \line { \strokeUp } } }
149 mDown = \markup { \column { \small m \line { \strokeDown } } }
150 aUp   = \markup { \column { \small a \line { \strokeUp } } }
151 aDown = \markup { \column { \small a \line { \strokeDown } } }
152 xUp   = \markup { \column { \small x \line { \strokeUp } } }
153 xDown = \markup { \column { \small x \line { \strokeDown } } }
154
155
156 % Just handy :)
157 tupletOff = {
158   \once \override TupletNumber #'stencil = ##f
159   \once \override TupletBracket #'stencil = ##f
160 }
161
162 tupletsOff = {
163   \override TupletNumber #'stencil = ##f
164   \override TupletBracket #'bracket-visibility = #'if-no-beam
165 }
166
167 tupletsOn = {
168   \override TupletBracket #'bracket-visibility = #'default
169   \revert TupletNumber #'stencil
170 }
171
172 headsOff = {
173   \override TabNoteHead #'transparent = ##t
174   \override NoteHead #'transparent = ##t
175   \override NoteHead #'no-ledgers = ##t
176 }
177
178 headsOn = {
179   \override TabNoteHead #'transparent = ##f
180   \override NoteHead #'transparent = ##f
181   \override NoteHead #'no-ledgers = ##f
182 }
183
184 %%%%%%%  Cut here ----- End 'flamenco.ly'
185 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
186
187 part = \relative c' {
188   <a, e' a cis e>8^\iUp
189   <a e' a cis e>8^\iDown
190   r4
191   r2^\golpe
192
193   <a e' a cis e>8^\iUp
194   <a e' a cis e>8^\iDown
195   <a e' a cis e>8^\iUpGolpe
196   <a e' a cis e>8^\iDown
197   r2
198
199   <a e' a cis e>16^\aUp
200   \headsOff
201   <a e' a cis e>^\mUp
202   <a e' a cis e>^\iUp
203   <a e' a cis e>^\iDown~
204   \headsOn
205   <a e' a cis e>2
206   r4
207
208   \tupletOff
209   \times 4/5 {
210     <a e' a cis e>16^\xUp
211     \headsOff
212     <a e' a cis e>^\aUp
213     <a e' a cis e>^\mUp
214     <a e' a cis e>^\iUp
215     <a e' a cis e>^\iDown~
216     \headsOn
217   }
218   <a e' a cis e>2
219   r4
220
221   \tupletsOff
222   \times 2/3 {
223     <a e' a cis e>8^\pDown
224     \headsOff
225     <a e' a cis e>^\xUp
226     <a e' a cis e>^\iUp
227     \headsOn
228   }
229
230   \times 2/3 {
231     <a e' a cis e>8^\pDown
232     \headsOff
233     <a e' a cis e>^\xUp
234     <a e' a cis e>^\iUp
235     \headsOn
236   }
237
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   \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   \tupletsOff
254   \override Beam #'positions = #'(2 . 2)
255   \times 2/3 {
256     a8^\markup{ \small p }
257     <e' a>^\strokeUpGolpe
258     <e a>^\strokeDown
259   }
260   \times 2/3 {
261     a,8^\markup{ \small p }
262     <e' a>^\strokeUpGolpe
263     <e a>^\strokeDown
264   }
265   \times 2/3 {
266     a,8^\markup{ \small p }
267     <e' a>^\strokeUpGolpe
268     <e a>^\strokeDown
269   }
270   \times 2/3 {
271     a,8^\markup{ \small p }
272     <e' a>^\strokeUpGolpe
273     <e a>^\strokeDown
274   }
275   \tupletsOn
276
277   \once \override TextScript #'extra-offset = #'(0 . -1)
278   <g, b f'>1_\golpe^\mUp
279   \bar "|."
280 }
281
282 \score {
283   \new StaffGroup <<
284     \context Staff = "part" <<
285       \clef G
286       \transpose c c'
287       {
288         \part
289       }
290     >>
291     \context TabStaff {
292       \part
293     }
294   >>
295   \layout {
296     ragged-right = ##t
297   }
298 }