]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/flamenco-notation.ly
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / snippets / flamenco-notation.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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.18.0"
8
9 \header {
10   lsrtags = "fretted-strings, specific-notation, stylesheet, version-specific"
11
12   texidoc = "
13 For flamenco guitar, special notation is used:
14
15
16 * a golpe symbol to indicate a slap on the guitar body with the nail of
17 the ring finger * an arrow to indicate (the direction of) strokes *
18 different letters for fingering (@qq{p}: thumb, @qq{i}: index finger,
19 @qq{m}: middle finger, @qq{a}: ring finger and @qq{x}: little finger) *
20 3- and 4-finger rasgueados; stroke upwards with all fingers, ending
21 with an up- and down using the index finger * abanicos: strokes (in
22 tuples) with thumb (down), little and index finger (both up). There's
23 also an abanico 2 where middle and ring finger are used instead of the
24 little finger. * alza pua: fast playing with the thumb
25
26
27 Most figures use arrows in combination with fingering; with abanicos
28 and rasgueados, noteheads are printed only for the first chord.
29
30 This snippet contains some header-like code that can be copied as
31 @samp{flamenco.ly} and included in source files.
32
33 "
34   doctitle = "Flamenco notation"
35 } % begin verbatim
36
37 %%%%%%%  Cut here ----- Start 'flamenco.ly'
38
39 % Text indicators :
40 abanico = ^\markup\small { \italic Abanico }
41 rasgueado = ^\markup\small { \italic Ras. }
42 alzapua = ^\markup\small { \italic Alzapua }
43
44 % Finger stroke symbols :
45 strokeUp = \markup\combine\override #'(thickness . 1.3) \draw-line #'(0 . 2)\raise #2 \arrow-head #Y #UP ##f
46 strokeDown = \markup\combine\arrow-head #Y #DOWN ##f \override #'(thickness . 1.3) \draw-line #'(0 . 2)
47
48 % Golpe symbol :
49 golpe = \markup {
50   \filled-box #'(0 . 1) #'(0 . 1) #0
51   \hspace #-1.6
52   \with-color #white
53   \filled-box #'(0.15 . 0.85) #'(0.15 . 0.85) #0
54 }
55
56 % Strokes, fingers and golpe command :
57 RHp = \rightHandFinger #1
58 RHi = \rightHandFinger #2
59 RHm = \rightHandFinger #3
60 RHa = \rightHandFinger #4
61 RHx = \rightHandFinger #5
62 RHu = \rightHandFinger \strokeUp
63 RHd = \rightHandFinger \strokeDown
64 RHg = \rightHandFinger \golpe
65
66 % Just handy :)
67 tupletOff = {
68   \once \omit TupletNumber
69   \once \omit TupletBracket
70 }
71
72 tupletsOff = {
73   \omit TupletNumber
74   \override TupletBracket.bracket-visibility = #'if-no-beam
75 }
76
77 tupletsOn = {
78   \override TupletBracket.bracket-visibility = #'default
79   \undo \omit TupletNumber
80 }
81
82 headsOff = {
83   \hide TabNoteHead
84   \hide NoteHead
85   \override NoteHead.no-ledgers = ##t
86 }
87
88 headsOn = {
89   \override TabNoteHead.transparent = ##f
90   \override NoteHead.transparent = ##f
91   \override NoteHead.no-ledgers = ##f
92 }
93
94 %%%%%%%  Cut here ----- End 'flamenco.ly'
95 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96
97 part = \relative c' {
98   \set strokeFingerOrientations = #'(up)
99   \override StrokeFinger.add-stem-support = ##t
100   \key a\major
101   <a, e' a cis e\RHu\RHi>8
102   <a e' a cis e\RHd\RHi>8
103   r4
104   r2^\markup\golpe
105   <a e' a cis e\RHu\RHi>8
106   <a e' a cis e\RHd\RHi>8
107   <a e' a cis e\RHu\RHi\RHg>8
108   <a e' a cis e\RHd\RHi>8
109   r2
110   <a e' a cis e\RHu\RHa>16\rasgueado
111   \headsOff
112   <a e' a cis e\RHu\RHm>
113   <a e' a cis e\RHu\RHi>
114   <a e' a cis e\RHd\RHi>~
115   \headsOn
116   <a e' a cis e>2
117   r4
118   \tupletOff
119   \tuplet 5/4 {
120     <a e' a cis e\RHu\RHx>16\rasgueado
121     \headsOff
122     <a e' a cis e\RHu\RHa>
123     <a e' a cis e\RHu\RHm>
124     <a e' a cis e\RHu\RHi>
125     <a e' a cis e\RHd\RHi>~
126     \headsOn
127   }
128   <a e' a cis e>2
129   r4
130   \tupletsOff
131   \tuplet 3/2 {
132     <a e' a cis e\RHd\RHp>8\abanico
133     \headsOff
134     <a e' a cis e\RHu\RHx>
135     <a e' a cis e\RHu\RHi>
136     \headsOn
137   }
138   \tuplet 3/2 {
139     <a e' a cis e\RHd\RHp>8
140     \headsOff
141     <a e' a cis e\RHu\RHx>
142     <a e' a cis e\RHu\RHi>
143     \headsOn
144   }
145   \tuplet 3/2 {
146     <a e' a cis e\RHd\RHp>8
147     \headsOff
148     <a e' a cis e\RHu\RHx>
149     <a e' a cis e\RHu\RHi>
150     \headsOn
151   }
152   \tuplet 3/2 {
153     <a e' a cis e\RHd\RHp>8
154     \headsOff
155     <a e' a cis e\RHu\RHx>
156     <a e' a cis e\RHu\RHi>
157     \headsOn
158   }
159   \tupletsOff
160   \override Beam.positions = #'(2 . 2)
161   \tuplet 3/2 {
162     a8\RHp\alzapua
163     <e' a\RHu\RHg>
164     <e a\RHd>
165   }
166   \tuplet 3/2 {
167     a,8\RHp
168     <e' a\RHu\RHg>
169     <e a\RHd>
170   }
171   \tuplet 3/2 {
172     a,8\RHp
173     <e' a\RHu\RHg>
174     <e a\RHd>
175   }
176   \tuplet 3/2 {
177     a,8\RHp
178     <e' a\RHu\RHg>
179     <e a\RHd>
180   }
181   \tupletsOn
182   <a, e' a\RHu\RHm>1
183   \bar "|."
184 }
185
186 \score {
187   \new StaffGroup <<
188     \context Staff = "part" <<
189       \clef "G_8"
190       {
191         \part
192       }
193     >>
194     \context TabStaff {
195       \part
196     }
197   >>
198   \layout {
199     ragged-right = ##t
200   }
201 }