]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/flamenco-notation.ly
Doc: run makelsr locally
[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, fretted-strings, stylesheet"
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   texidoc = "
53 For flamenco guitar, special notation is used:
54
55
56 * a golpe symbol to indicate a slap on the guitar body with the nail of
57 the ring finger * an arrow to indicate (the direction of) strokes *
58 different letters for fingering (@qq{p}: thumb, @qq{i}: index finger,
59 @qq{m}: middle finger, @qq{a}: ring finger and @qq{x}: little finger) *
60 3- and 4-finger rasgueados; stroke upwards with all fingers, ending
61 with an up- and down using the index finger * abanicos: strokes (in
62 tuples) with thumb (down), little and index finger (both up). There's
63 also an abanico 2 where middle and ring finger are used instead of the
64 little finger. * alza pua: fast playing with the thumb
65
66
67 Most figures use arrows in combination with fingering; with abanicos
68 and rasgueados, noteheads are printed only for the first chord.
69
70 This snippet contains some header-like code that can be copied as
71 @samp{flamenco.ly} and included in source files.
72
73 "
74   doctitle = "Flamenco notation"
75 } % begin verbatim
76
77
78 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
79 %%%%%%%  Cut here ----- Start 'flamenco.ly'
80
81 % Text indicators
82 abanico = \markup { \italic Abanico }
83 rasgueaso = \markup { \italic Ras. }
84 alzapua = \markup { \italic Alzapua }
85
86 % Finger stroke symbols
87 strokeUp = \markup { \postscript #"
88   0.1     setlinewidth
89   0.5 0   moveto
90   0.5 2   lineto
91   0.2 1.4 lineto
92   0.5 2   moveto
93   0.8 1.4 lineto
94   stroke
95 "}
96
97 strokeDown = \markup { \postscript #"
98   0.1     setlinewidth
99   0.5 2   moveto
100   0.5 0   lineto
101   0.2 0.6 lineto
102   0.5 0   moveto
103   0.8 0.6 lineto
104   stroke
105 "}
106
107 % Golpe symbol
108 golpe = \markup { \postscript #"
109   0.2 setlinewidth
110   0 0 moveto
111   1 0 lineto
112   1 1 lineto
113   stroke
114   "\postscript #"
115   0.1       setlinewidth
116   -0.6 -0.1  moveto
117   -0.6  1.0 lineto
118   0.5  1.0 lineto
119   stroke
120 "}
121
122 strokeUpGolpe = \markup { \column { \golpe \line { \strokeUp } } }
123 iUpGolpe = \markup { \column { \golpe \line { \small i } \line { \strokeUp } } }
124
125 % Strokes for all fingers
126 pUp   = \markup { \column { \small p \line { \strokeUp } } }
127 pDown = \markup { \column { \small p \line { \strokeDown } } }
128 iUp   = \markup { \column { \small i \line { \strokeUp } } }
129 iDown = \markup { \column { \small i \line { \strokeDown } } }
130 mUp   = \markup { \column { \small m \line { \strokeUp } } }
131 mDown = \markup { \column { \small m \line { \strokeDown } } }
132 aUp   = \markup { \column { \small a \line { \strokeUp } } }
133 aDown = \markup { \column { \small a \line { \strokeDown } } }
134 xUp   = \markup { \column { \small x \line { \strokeUp } } }
135 xDown = \markup { \column { \small x \line { \strokeDown } } }
136
137
138 % Just handy :)
139 tupletOff = {
140   \once \override TupletNumber #'stencil = ##f
141   \once \override TupletBracket #'stencil = ##f
142 }
143
144 tupletsOff = {
145   \override TupletNumber #'stencil = ##f
146   \override TupletBracket #'bracket-visibility = #'if-no-beam
147 }
148
149 tupletsOn = {
150   \override TupletBracket #'bracket-visibility = #'default
151   \revert TupletNumber #'stencil
152 }
153
154 headsOff = {
155   \override TabNoteHead #'transparent = ##t
156   \override NoteHead #'transparent = ##t
157   \override NoteHead #'no-ledgers = ##t
158 }
159
160 headsOn = {
161   \override TabNoteHead #'transparent = ##f
162   \override NoteHead #'transparent = ##f
163   \override NoteHead #'no-ledgers = ##f
164 }
165
166 %%%%%%%  Cut here ----- End 'flamenco.ly'
167 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
168
169 part = \relative c' {
170   <a, e' a cis e>8^\iUp
171   <a e' a cis e>8^\iDown
172   r4
173   r2^\golpe
174
175   <a e' a cis e>8^\iUp
176   <a e' a cis e>8^\iDown
177   <a e' a cis e>8^\iUpGolpe
178   <a e' a cis e>8^\iDown
179   r2
180
181   <a e' a cis e>16^\aUp
182   \headsOff
183   <a e' a cis e>^\mUp
184   <a e' a cis e>^\iUp
185   <a e' a cis e>^\iDown~
186   \headsOn
187   <a e' a cis e>2
188   r4
189
190   \tupletOff
191   \times 4/5 {
192     <a e' a cis e>16^\xUp
193     \headsOff
194     <a e' a cis e>^\aUp
195     <a e' a cis e>^\mUp
196     <a e' a cis e>^\iUp
197     <a e' a cis e>^\iDown~
198     \headsOn
199   }
200   <a e' a cis e>2
201   r4
202
203   \tupletsOff
204   \times 2/3 {
205     <a e' a cis e>8^\pDown
206     \headsOff
207     <a e' a cis e>^\xUp
208     <a e' a cis e>^\iUp
209     \headsOn
210   }
211
212   \times 2/3 {
213     <a e' a cis e>8^\pDown
214     \headsOff
215     <a e' a cis e>^\xUp
216     <a e' a cis e>^\iUp
217     \headsOn
218   }
219
220   \times 2/3 {
221     <a e' a cis e>8^\pDown
222     \headsOff
223     <a e' a cis e>^\xUp
224     <a e' a cis e>^\iUp
225     \headsOn
226   }
227   \times 2/3 {
228     <a e' a cis e>8^\pDown
229     \headsOff
230     <a e' a cis e>^\xUp
231     <a e' a cis e>^\iUp
232     \headsOn
233   }
234
235   \tupletsOff
236   \override Beam #'positions = #'(2 . 2)
237   \times 2/3 {
238     a8^\markup{ \small p }
239     <e' a>^\strokeUpGolpe
240     <e a>^\strokeDown
241   }
242   \times 2/3 {
243     a,8^\markup{ \small p }
244     <e' a>^\strokeUpGolpe
245     <e a>^\strokeDown
246   }
247   \times 2/3 {
248     a,8^\markup{ \small p }
249     <e' a>^\strokeUpGolpe
250     <e a>^\strokeDown
251   }
252   \times 2/3 {
253     a,8^\markup{ \small p }
254     <e' a>^\strokeUpGolpe
255     <e a>^\strokeDown
256   }
257   \tupletsOn
258
259   \once \override TextScript #'extra-offset = #'(0 . -1)
260   <g, b f'>1_\golpe^\mUp
261   \bar "|."
262 }
263
264 \score {
265   \new StaffGroup <<
266     \context Staff = "part" <<
267       \clef G
268       \transpose c c'
269       {
270         \part
271       }
272     >>
273     \context TabStaff {
274       \part
275     }
276   >>
277   \layout {
278     ragged-right = ##t
279   }
280 }