Fix Flemish note name file.
[lilypond.git] / ly / bagpipe.ly
blob3ed668ce8e56de060d56d13dd58512b57f359287
1 %{
2 Bagpipe music settings for Lilypond.
3 This file builds on work by Andrew McNabb (http://www.mcnabbs.org/andrew/)
5 Substantial changes and additions made by
6 Sven Axelsson, the Murray Pipes & Drums of Gothenburg
7 (http://www.murrays.nu)
9 $Id: bagpipe.ly,v 1.12 2006/03/16 14:39:46 hanwen Exp $
12 \version "2.10.0"
14 % Notes of the scale of the Great Highland Bagpipe. Extra high notes for bombarde.
15 % Flat notes used mainly in some modern music.
17 pitchnamesBagpipe = #`(
18 (G . ,(ly:make-pitch 0 4 NATURAL))
19 (a . ,(ly:make-pitch 0 5 NATURAL))
20 (b . ,(ly:make-pitch 0 6 NATURAL))
21 (c . ,(ly:make-pitch 1 0 SHARP))
22 (cflat . ,(ly:make-pitch 1 0 FLAT))
23 (d . ,(ly:make-pitch 1 1 NATURAL))
24 (e . ,(ly:make-pitch 1 2 NATURAL))
25 (f . ,(ly:make-pitch 1 3 SHARP))
26 (fflat . ,(ly:make-pitch 1 3 FLAT))
27 (g . ,(ly:make-pitch 1 4 NATURAL))
28 (gflat . ,(ly:make-pitch 1 4 FLAT))
29 (A . ,(ly:make-pitch 1 5 NATURAL))
30 (B . ,(ly:make-pitch 1 6 NATURAL))
31 (C . ,(ly:make-pitch 2 0 SHARP))
33 pitchnames = \pitchnamesBagpipe
34 #(ly:parser-set-note-names parser pitchnames)
36 % Bagpipe music is written in something like D major. If we use
37 % flattened notes, the flat should be shown on all instances.
39 hideKeySignature = {
40 % We normally don't want to show the key signature.
41 \override Staff.KeySignature #'stencil = ##f
42 \set Staff.extraNatural = ##f
43 \key d \major
44 #(set-accidental-style 'forget)
46 showKeySignature = {
47 % Show the key signature e.g. for BMW compatibility.
48 \override Staff.KeySignature #'stencil = #ly:key-signature-interface::print
49 \set Staff.extraNatural = ##f
50 \key d \major
51 #(set-accidental-style 'forget)
54 % Layout tweaks.
56 \layout {
57 \context {
58 \Voice
59 % All stems go down.
60 \override Stem #'direction = #DOWN
61 % All slurs and ties are on top.
62 \override Slur #'direction = #UP
63 \override Tie #'direction = #UP
67 % Some common timing tweaks.
69 % Sets the autobeamer to span quarter notes only. Use for fast music.
70 % TODO: Needs more tweaking
71 quarterBeaming = {
72 #(override-auto-beam-setting '(end * * * *) 1 4 'Staff)
73 #(override-auto-beam-setting '(end * * * *) 1 2 'Staff)
74 #(override-auto-beam-setting '(end * * * *) 3 4 'Staff)
75 #(override-auto-beam-setting '(end * * * *) 4 4 'Staff)
76 #(revert-auto-beam-setting '(end 1 32 2 4 ) 1 8 'Staff)
77 #(revert-auto-beam-setting '(end 1 32 2 4 ) 3 8 'Staff)
78 #(revert-auto-beam-setting '(end 1 32 4 4 ) 1 8 'Staff)
79 #(revert-auto-beam-setting '(end 1 32 4 4 ) 3 8 'Staff)
80 #(revert-auto-beam-setting '(end 1 32 4 4 ) 5 8 'Staff)
81 #(revert-auto-beam-setting '(end 1 32 4 4 ) 7 8 'Staff)
83 halfBeaming = {
84 #(override-auto-beam-setting '(end * * 2 2) 1 2 'Staff)
85 #(override-auto-beam-setting '(end * * 2 2) 2 2 'Staff)
87 % Reels are in allabreve time with half note beaming.
88 reelTime = {
89 \time 2/2
90 \halfBeaming
92 % 4/4 marches are written with numerical time signature and with quarter beaming.
93 marchTime = {
94 \time 4/4
95 \override Staff.TimeSignature #'style = #'()
96 \quarterBeaming
99 % Single grace notes
100 grG = { \grace { \small G32 } }
101 gra = { \grace { \small a32 } }
102 grb = { \grace { \small b32 } }
103 grc = { \grace { \small c32 } }
104 grd = { \grace { \small d32 } }
105 gre = { \grace { \small e32 } }
106 grf = { \grace { \small f32 } }
107 grg = { \grace { \small g32 } }
108 grA = { \grace { \small A32 } }
110 % Doublings
111 dblG = { \grace { \small g32[ G d] } }
112 dbla = { \grace { \small g32[ a d] } }
113 dblb = { \grace { \small g32[ b d] } }
114 dblc = { \grace { \small g32[ c d] } }
115 dbld = { \grace { \small g32[ d e] } }
116 dble = { \grace { \small g32[ e f] } }
117 dblf = { \grace { \small g32[ f g] } }
118 % These are the same as the half doublings.
119 dblg = { \grace { \small g32[ f] } }
120 dblA = { \grace { \small A32[ g] } }
122 % Half doublings
123 hdblG = { \grace { \small G32[ d] } }
124 hdbla = { \grace { \small a32[ d] } }
125 hdblb = { \grace { \small b32[ d] } }
126 hdblc = { \grace { \small c32[ d] } }
127 hdbld = { \grace { \small d32[ e] } }
128 hdble = { \grace { \small e32[ f] } }
129 hdblf = { \grace { \small f32[ g] } }
130 hdblg = { \grace { \small g32[ f] } }
131 hdblA = { \grace { \small A32[ g] } }
133 % Thumb doublings
134 tdblG = { \grace { \small A32[ G d] } }
135 tdbla = { \grace { \small A32[ a d] } }
136 tdblb = { \grace { \small A32[ b d] } }
137 tdblc = { \grace { \small A32[ c d] } }
138 tdbld = { \grace { \small A32[ d e] } }
139 tdble = { \grace { \small A32[ e f] } }
140 tdblf = { \grace { \small A32[ f g] } }
141 tdblg = { \grace { \small A32[ g f] } }
143 % Shakes
144 % A few of these can't really be played and are here only for consistency.
145 shakea = { \grace { \small g32[ a d a G] } }
146 shakeb = { \grace { \small g32[ b d b G] } }
147 shakec = { \grace { \small g32[ c d c G] } }
148 shaked = { \grace { \small g32[ d e d G] } }
149 shakee = { \grace { \small g32[ e f e a] } }
150 shakef = { \grace { \small g32[ f g f a] } }
151 shakeg = { \grace { \small A32[ f g a] } }
152 shakeA = { \grace { \small A32[ g A a] } }
154 % Half shakes
155 hshakea = { \grace { \small a32[ d a G] } }
156 hshakeb = { \grace { \small b32[ d b G] } }
157 hshakec = { \grace { \small c32[ d c G] } }
158 hshaked = { \grace { \small d32[ e d G] } }
159 hshakee = { \grace { \small e32[ f e a] } }
160 hshakef = { \grace { \small f32[ g f a] } }
161 hshakeg = { \grace { \small g32[ f g a] } }
162 hshakeA = { \grace { \small A32[ g A a] } }
164 % Thumb shakes
165 tshakea = { \grace { \small A32[ a d a G] } }
166 tshakeb = { \grace { \small A32[ b d b G] } }
167 tshakec = { \grace { \small A32[ c d c G] } }
168 tshaked = { \grace { \small A32[ d e d G] } }
169 tshakee = { \grace { \small A32[ e f e a] } }
170 tshakef = { \grace { \small A32[ f g f a] } }
171 tshakeg = { \grace { \small A32[ f g a] } }
172 tshakeA = { \grace { \small A32[ g A a] } }
174 % Slurs
175 % A few of these can't really be played and are here only for consistency.
176 slura = { \grace { \small g32[ a G] } }
177 slurb = { \grace { \small g32[ b G] } }
178 slurc = { \grace { \small g32[ c G] } }
179 slurd = { \grace { \small g32[ d G] } }
180 slure = { \grace { \small g32[ e a] } }
181 slurf = { \grace { \small g32[ f a] } }
182 slurg = { \grace { \small A32[ f a] } }
183 slurA = { \grace { \small f32[ a] } }
185 % Half slurs
186 hslura = { \grace { \small a32[ G] } }
187 hslurb = { \grace { \small b32[ G] } }
188 hslurc = { \grace { \small c32[ G] } }
189 hslurd = { \grace { \small d32[ G] } }
190 hslure = { \grace { \small e32[ a] } }
191 hslurf = { \grace { \small f32[ a] } }
192 hslurg = { \grace { \small g32[ a] } }
193 hslurA = { \grace { \small A32[ a] } }
195 % Thumb slurs
196 tslura = { \grace { \small A32[ a G] } }
197 tslurb = { \grace { \small A32[ b G] } }
198 tslurc = { \grace { \small A32[ c G] } }
199 tslurd = { \grace { \small A32[ d a] } }
200 tslure = { \grace { \small A32[ e a] } }
201 tslurf = { \grace { \small A32[ f a] } }
202 tslurg = { \grace { \small A32[ f a] } }
203 tslurA = { \grace { \small f32[ a] } }
205 % Catches
206 catcha = { \grace { \small a32[ G d G] } }
207 catchb = { \grace { \small b32[ G d G] } }
208 catchc = { \grace { \small c32[ G d G] } }
209 catchd = { \grace { \small d32[ G b G] } }
210 catche = { \grace { \small e32[ G d G] } }
212 % G-grace catches
213 gcatcha = { \grace { \small g32[ a G d G] } }
214 gcatchb = { \grace { \small g32[ b G d G] } }
215 gcatchc = { \grace { \small g32[ c G d G] } }
216 gcatchd = { \grace { \small g32[ d G b G] } }
217 gcatche = { \grace { \small g32[ e G d G] } }
219 % Thumb catches
220 tcatcha = { \grace { \small A32[ a G d G] } }
221 tcatchb = { \grace { \small A32[ b G d G] } }
222 tcatchc = { \grace { \small A32[ c G d G] } }
223 tcatchd = { \grace { \small A32[ d G b G] } }
224 tcatche = { \grace { \small A32[ e G d G] } }
226 % Throws
227 thrwd = { \grace { \small G32[ d c] } }
228 Gthrwd = { \grace { \small d32[ c] } }
229 gripthrwd = { \grace { \small G32[ d G c] } }
230 thrwf = { \grace { \small f32[ e g e] } }
232 % Birls
233 birl = { \grace { \small a32[ G a G] } }
234 wbirl = { \grace { \small G32[ a G] } }
235 gbirl = { \grace { \small g32[ a G a G] } }
236 dbirl = { \grace { \small d32[ a G a G] } }
238 % Grips
239 grip = { \grace { \small G32[ d G] } }
240 dgrip = { \grace { \small G32[ b G] } }
241 egrip = { \grace { \small G32[ e G] } }
243 % Taorluaths
244 taor = { \grace { \small G32[ d G e] } }
245 dtaor = { \grace { \small G32[ b G e] } }
246 Gtaor = { \grace { \small d32[ G e] } }
247 taoramb = { \grace { \small G32[ d G b e] } }
248 taoramc = { \grace { \small G32[ d G c e] } }
249 taoramd = { \grace { \small G32[ d G c d e] } }
251 % Crunluaths
252 crun = { \grace { \small G32[ d G e a f a ] } }
253 dcrun = { \grace { \small G32[ b G e a f a ] } }
254 Gcrun = { \grace { \small d32[ G e G f a ] } }
255 crunamb = { \grace { \small G32[ d G b e b f b ] } }
256 crunamc = { \grace { \small G32[ d G c e c f c ] } }
257 crunamd = { \grace { \small G32[ d G c d e d f d ] } }
259 % Special piobaireachd notations
260 grGcad = { \grace { \small G16 } }
261 gracad = { \grace { \small a16 } }
262 cad = { \grace { \small g32[ e8 d32] } }
263 hcad = { \grace { \small g32[ e8] } }
264 dre = { \grace { \small e32[ a f a] } }
265 % This is the same as thrwf
266 dare = { \grace { \small f32[ e g e] } }
267 bari = { \grace { \small e32[ G f G] } }
268 dari = { \grace { \small f32[ e g e f e] } }
269 pthrwd = { \grace { \small G16[ d32 c] } }
270 darodo = { \grace { \small G32[ d G c G] } }
271 Gdarodo = { \grace { \small d32[ G c G] } }
272 % Non-gracenote piobaireachd markup.
273 trebling = \markup {
274 \override #'(baseline-skip . 0.3)
275 \column {
276 \musicglyph #"scripts.tenuto"
277 \musicglyph #"scripts.tenuto"
278 \musicglyph #"scripts.tenuto"
281 % Abbreviated notation common in piobaireachd scores.
282 % TODO: Make sure these are put on a fixed Y-position.
283 txtaor = \markup { "T" }
284 txcrun = \markup { "C" }
285 txtaorcrun = \markup { \column { "T" "C" } }
286 % TODO: These characters should be shown upside down.
287 % Use a postscript markup command for this.
288 txtaoram = \markup { "T" }
289 txcrunam = \markup { "C" }
290 txtaorcrunam = \markup { \column { "T" "C" } }