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