]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/flamenco-notation.ly
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / Documentation / snippets / flamenco-notation.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.4"
5
6 \header {
7   lsrtags = "fretted-strings"
8
9   texidoc = "
10 For flamenco guitar, special notation is used:
11
12
13 * a golpe symbol to indicate a slap on the guitar body with the nail of
14 the ring finger
15
16
17 * an arrow to indicate (the direction of) strokes
18
19
20 * different letters for fingering (\"p\": thumb, \"i\": index finger,
21 \"m\": middle finger, \"a\": ring finger and \"x\": little finger)
22
23
24 * 3- and 4-finger rasgueados; stroke upwards with all fingers, ending
25 with an up- and down using the index finger
26
27
28 * abanicos: strokes (in tuples) with thumb (down), little and index
29 finger (both up). There's also an abanico 2 where middle and ring
30 finger are used instead of the little finger.
31
32
33 * alza pua: fast playing with the thumb
34
35
36 Most figures use arrows in combination with fingering; with abanicos
37 and rasgueados, noteheads are printed only for the first chord.
38
39 This snippet contains some header-like code that can be copied as
40 @samp{flamenco.ly} and included in source files.
41
42 "
43   doctitle = "Flamenco notation"
44 } % begin verbatim
45
46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
47 %%%%%%%  Cut here ----- Start 'flamenco.ly'
48
49 % Text indicators
50 abanico   = \markup { \italic Abanico }
51 rasgueaso = \markup { \italic Ras. }
52 alzapua   = \markup { \italic Alzapua }
53
54 % Finger stroke symbols
55 strokeUp = \markup { \postscript #"
56   0.1     setlinewidth
57   0.5 0   moveto
58   0.5 2   lineto
59   0.2 1.4 lineto
60   0.5 2   moveto
61   0.8 1.4 lineto
62   stroke
63 "}
64
65 strokeDown = \markup { \postscript #"
66   0.1     setlinewidth
67   0.5 2   moveto
68   0.5 0   lineto
69   0.2 0.6 lineto
70   0.5 0   moveto
71   0.8 0.6 lineto
72   stroke
73 "}
74
75 % Golpe symbol
76 golpe = \markup { \postscript #"
77   0.2 setlinewidth
78   0 0 moveto
79   1 0 lineto
80   1 1 lineto
81   stroke
82   "\postscript #"
83   0.1       setlinewidth
84   -0.6 -0.1  moveto
85   -0.6  1.0 lineto
86   0.5  1.0 lineto
87   stroke
88 "}
89
90 strokeUpGolpe = \markup { \column { \golpe \line { \strokeUp }}}
91 iUpGolpe = \markup { \column { \golpe \line { \small i } \line { \strokeUp }}}
92
93 % Strokes for all fingers
94 pUp   = \markup { \column { \small p \line { \strokeUp }}}
95 pDown = \markup { \column { \small p \line { \strokeDown }}}
96 iUp   = \markup { \column { \small i \line { \strokeUp }}}
97 iDown = \markup { \column { \small i \line { \strokeDown }}}
98 mUp   = \markup { \column { \small m \line { \strokeUp }}}
99 mDown = \markup { \column { \small m \line { \strokeDown }}}
100 aUp   = \markup { \column { \small a \line { \strokeUp }}}
101 aDown = \markup { \column { \small a \line { \strokeDown }}}
102 xUp   = \markup { \column { \small x \line { \strokeUp }}}
103 xDown = \markup { \column { \small x \line { \strokeDown }}}
104
105
106 % Just handy :)
107 tupletOff = {
108   \once \override TupletNumber #'stencil = ##f
109   \once \override TupletBracket #'stencil = ##f
110 }
111
112 tupletsOff = {
113   \override TupletNumber #'stencil = ##f
114   \override TupletBracket #'bracket-visibility = #'if-no-beam
115 }
116
117 tupletsOn = {
118   \override TupletBracket #'bracket-visibility = #'default
119   \revert TupletNumber #'stencil
120 }
121
122 headsOff = {
123   \override TabNoteHead #'transparent = ##t
124   \override NoteHead #'transparent = ##t
125   \override NoteHead #'no-ledgers = ##t
126 }
127
128 headsOn = {
129   \override TabNoteHead #'transparent = ##f
130   \override NoteHead #'transparent = ##f
131   \override NoteHead #'no-ledgers = ##f
132 }
133
134 %%%%%%%  Cut here ----- End 'flamenco.ly'
135 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
136
137 part = \relative c' {
138   <a, e' a cis e>8^\iUp
139   <a e' a cis e>8^\iDown
140   r4
141   r2^\golpe
142
143   <a e' a cis e>8^\iUp
144   <a e' a cis e>8^\iDown
145   <a e' a cis e>8^\iUpGolpe
146   <a e' a cis e>8^\iDown
147   r2
148
149   <a e' a cis e>16^\aUp
150   \headsOff
151   <a e' a cis e>^\mUp
152   <a e' a cis e>^\iUp
153   <a e' a cis e>^\iDown~
154   \headsOn
155   <a e' a cis e>2
156   r4
157
158   \tupletOff
159   \times 4/5 {
160     <a e' a cis e>16^\xUp
161     \headsOff
162     <a e' a cis e>^\aUp
163     <a e' a cis e>^\mUp
164     <a e' a cis e>^\iUp
165     <a e' a cis e>^\iDown~
166     \headsOn
167   }
168   <a e' a cis e>2
169   r4
170
171   \tupletsOff
172   \times 2/3 {
173     <a e' a cis e>8^\pDown
174     \headsOff
175     <a e' a cis e>^\xUp
176     <a e' a cis e>^\iUp
177     \headsOn
178   }
179
180   \times 2/3 {
181     <a e' a cis e>8^\pDown
182     \headsOff
183     <a e' a cis e>^\xUp
184     <a e' a cis e>^\iUp
185     \headsOn
186   }
187
188   \times 2/3 {
189     <a e' a cis e>8^\pDown
190     \headsOff
191     <a e' a cis e>^\xUp
192     <a e' a cis e>^\iUp
193     \headsOn
194   }
195   \times 2/3 {
196     <a e' a cis e>8^\pDown
197     \headsOff
198     <a e' a cis e>^\xUp
199     <a e' a cis e>^\iUp
200     \headsOn
201   }
202
203   \tupletsOff
204   \override Beam #'positions = #'(2 . 2)
205   \times 2/3 {
206     a8^\markup{ \small p }
207     <e' a>^\strokeUpGolpe
208     <e a>^\strokeDown
209   }
210   \times 2/3 {
211     a,8^\markup{ \small p }
212     <e' a>^\strokeUpGolpe
213     <e a>^\strokeDown
214   }
215   \times 2/3 {
216     a,8^\markup{ \small p }
217     <e' a>^\strokeUpGolpe
218     <e a>^\strokeDown
219   }
220   \times 2/3 {
221     a,8^\markup{ \small p }
222     <e' a>^\strokeUpGolpe
223     <e a>^\strokeDown
224   }
225   \tupletsOn
226
227   \once \override TextScript #'extra-offset = #'(0 . -1)
228   <g, b f'>1_\golpe^\mUp
229   \bar "|."
230 }
231
232 \score {
233   \new StaffGroup <<
234     \context Staff = "part" <<
235       \clef G
236       \transpose c c'
237       {
238         \part
239       }
240     >>
241     \context TabStaff {
242       \part
243     }
244   >>
245   \layout {
246     ragged-right = ##t
247   }
248 }
249
250