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 $
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 (c-flat . ,(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 (f-flat . ,(ly:make-pitch 1 3 FLAT))
27 (g . ,(ly:make-pitch 1 4 NATURAL))
28 (g-flat . ,(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.
40 % We normally don't want to show the key signature.
41 \omit Staff.KeySignature
42 \set Staff.extraNatural = ##f
44 \accidentalStyle forget
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
51 \accidentalStyle forget
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.
71 \set Staff.beamExceptions = #'()
74 \set Staff.beamExceptions =
75 \beamExceptions { 8[ 8 8 8] |
76 \tuplet 3/2 { 8[ 8 8] 8[ 8 8] 8[ 8 8] 8[ 8 8] } }
79 % Reels are in allabreve time with half note beaming.
84 % 4/4 marches are written with numerical time signature and with quarter beaming.
91 % Add appropriate tweaks needed for piping grace notes to look great.
92 stemspace = #(define-music-function (parser location extent) (pair?) #{
93 \once \override Staff.Stem.X-extent = #extent
95 pgrace = #(define-music-function (parser location notes) (ly:music?) #{
96 \override Score.GraceSpacing.spacing-increment = #0
97 \override Score.Stem.beamlet-max-length-proportion = #'(0.5 . 0.5)
98 \small \grace $notes \normalsize
99 \revert Score.Stem.beamlet-default-length
103 grG = { \pgrace { G32 } }
104 gra = { \pgrace { a32 } }
105 grb = { \pgrace { b32 } }
106 grc = { \pgrace { c32 } }
107 grd = { \pgrace { d32 } }
108 gre = { \pgrace { e32 } }
109 grf = { \pgrace { f32 } }
110 grg = { \pgrace { g32 } }
111 grA = { \pgrace { A32 } }
114 dblG = { \pgrace { g32[ G d] } }
115 dbla = { \pgrace { g32[ a d] } }
116 dblb = { \pgrace { g32[ b d] } }
117 dblc = { \pgrace { g32[ c d] } }
118 dbld = { \pgrace { g32[ d e] } }
119 dble = { \pgrace { g32[ e f] } }
120 dblf = { \pgrace { g32[ f g] } }
121 % These are the same as the half doublings.
122 dblg = { \pgrace { g32[ f] } }
123 dblA = { \pgrace { A32[ g] } }
126 hdblG = { \pgrace { G32[ d] } }
127 hdbla = { \pgrace { a32[ d] } }
128 hdblb = { \pgrace { b32[ d] } }
129 hdblc = { \pgrace { c32[ d] } }
130 hdbld = { \pgrace { d32[ e] } }
131 hdble = { \pgrace { e32[ f] } }
132 hdblf = { \pgrace { f32[ g] } }
133 hdblg = { \pgrace { g32[ f] } }
134 hdblA = { \pgrace { A32[ g] } }
137 tdblG = { \pgrace { A32[ G d] } }
138 tdbla = { \pgrace { A32[ a d] } }
139 tdblb = { \pgrace { A32[ b d] } }
140 tdblc = { \pgrace { A32[ c d] } }
141 tdbld = { \pgrace { A32[ d e] } }
142 tdble = { \pgrace { A32[ e f] } }
143 tdblf = { \pgrace { A32[ f g] } }
144 tdblg = { \pgrace { A32[ g f] } }
147 % A few of these can't really be played and are here only for consistency.
148 shakea = { \pgrace { g32[ a e a G] } }
149 shakeb = { \pgrace { g32[ b e b G] } }
150 shakec = { \pgrace { g32[ c e c G] } }
151 shaked = { \pgrace { g32[ d e d G] } }
152 shakee = { \pgrace { g32[ e f e a] } }
153 shakef = { \pgrace { g32[ f g f a] } }
154 shakeg = { \pgrace { A32[ f g a] } }
155 shakeA = { \pgrace { A32[ g A a] } }
158 hshakea = { \pgrace { a32[ d a G] } }
159 hshakeb = { \pgrace { b32[ d b G] } }
160 hshakec = { \pgrace { c32[ d c G] } }
161 hshaked = { \pgrace { d32[ e d G] } }
162 hshakee = { \pgrace { e32[ f e a] } }
163 hshakef = { \pgrace { f32[ g f a] } }
164 hshakeg = { \pgrace { g32[ f g a] } }
165 hshakeA = { \pgrace { A32[ g A a] } }
168 tshakea = { \pgrace { A32[ a d a G] } }
169 tshakeb = { \pgrace { A32[ b d b G] } }
170 tshakec = { \pgrace { A32[ c d c G] } }
171 tshaked = { \pgrace { A32[ d e d G] } }
172 tshakee = { \pgrace { A32[ e f e a] } }
173 tshakef = { \pgrace { A32[ f g f a] } }
174 tshakeg = { \pgrace { A32[ f g a] } }
175 tshakeA = { \pgrace { A32[ g A a] } }
178 % A few of these can't really be played and are here only for consistency.
179 slura = { \pgrace { g32[ a G] } }
180 slurb = { \pgrace { g32[ b G] } }
181 slurc = { \pgrace { g32[ c G] } }
182 slurd = { \pgrace { g32[ d G] } }
183 wslurd = { \pgrace { g32[ d c] } }
184 slure = { \pgrace { g32[ e a] } }
185 slurf = { \pgrace { g32[ f a] } }
186 slurg = { \pgrace { A32[ f a] } }
187 slurA = { \pgrace { f32[ a] } }
190 hslura = { \pgrace { a32[ G] } }
191 hslurb = { \pgrace { b32[ G] } }
192 hslurc = { \pgrace { c32[ G] } }
193 hslurd = { \pgrace { d32[ G] } }
194 whslurd = { \pgrace { d32[ c] } }
195 hslure = { \pgrace { e32[ a] } }
196 hslurf = { \pgrace { f32[ a] } }
197 hslurg = { \pgrace { g32[ a] } }
198 hslurA = { \pgrace { A32[ a] } }
201 tslura = { \pgrace { A32[ a G] } }
202 tslurb = { \pgrace { A32[ b G] } }
203 tslurc = { \pgrace { A32[ c G] } }
204 tslurd = { \pgrace { A32[ d G] } }
205 wtslurd = { \pgrace { A32[ d c] } }
206 tslure = { \pgrace { A32[ e a] } }
207 tslurf = { \pgrace { A32[ f a] } }
208 tslurg = { \pgrace { A32[ f a] } }
209 tslurA = { \pgrace { f32[ a] } }
212 catcha = { \pgrace { a32[ G d G] } }
213 catchb = { \pgrace { b32[ G d G] } }
214 catchc = { \pgrace { c32[ G d G] } }
215 catchd = { \pgrace { d32[ G b G] } }
216 catche = { \pgrace { e32[ G d G] } }
219 gcatcha = { \pgrace { g32[ a G d G] } }
220 gcatchb = { \pgrace { g32[ b G d G] } }
221 gcatchc = { \pgrace { g32[ c G d G] } }
222 gcatchd = { \pgrace { g32[ d G b G] } }
223 gcatche = { \pgrace { g32[ e G d G] } }
226 tcatcha = { \pgrace { A32[ a G d G] } }
227 tcatchb = { \pgrace { A32[ b G d G] } }
228 tcatchc = { \pgrace { A32[ c G d G] } }
229 tcatchd = { \pgrace { A32[ d G b G] } }
230 tcatche = { \pgrace { A32[ e G d G] } }
232 % Triple strikes (BMW has them all, but I've never seen any but the A one used, so ...)
233 tripleA = { \pgrace { A32[ g A g A g] } }
236 thrwd = { \pgrace { G32[ d c] } }
237 Gthrwd = { \pgrace { d32[ c] } }
238 gripthrwd = { \pgrace { G32[ d G c] } }
239 thrwe = { \pgrace { e32[ a f a] } }
240 wthrwe = { \pgrace { e32[ d f d] } }
241 thrwf = { \pgrace { f32[ e g e] } }
244 birl = { \pgrace { a32[ G a G] } }
245 wbirl = { \pgrace { G32[ a G] } }
246 gbirl = { \pgrace { g32[ a G a G] } }
247 dbirl = { \pgrace { d32[ a G a G] } }
250 grip = { \pgrace { G32[ d G] } }
251 dgrip = { \pgrace { G32[ b G] } }
252 egrip = { \pgrace { G32[ e G] } }
255 taor = { \pgrace { G32[ d G e] } }
256 taorjmd = { \pgrace { G32[ d a e] } }
257 taorold = { \pgrace { G32[ d G a e] } }
258 dtaor = { \pgrace { G32[ b G e] } }
259 Gtaor = { \pgrace { d32[ G e] } }
260 taoramb = { \pgrace { G32[ d G b e] } }
261 taoramc = { \pgrace { G32[ d G c e] } }
262 taoramd = { \pgrace { G32[ d G c d e] } }
265 crun = { \pgrace { G32[ d G e a f a ] } }
266 dcrun = { \pgrace { G32[ b G e a f a ] } }
267 Gcrun = { \pgrace { d32[ G e G f a ] } }
268 crunamb = { \pgrace { G32[ d G b e b f b ] } }
269 crunamc = { \pgrace { G32[ d G c e c f c ] } }
270 crunamd = { \pgrace { G32[ d G c d e d f d ] } }
271 crunambfosg = { \pgrace { e32[ b f b ] } }
272 crunamcfosg = { \pgrace { e32[ c f c ] } }
273 crunamdfosg = { \pgrace { e32[ d f d ] } }
275 % Special piobaireachd notations
276 grGcad = { \pgrace { G16 } }
277 gracad = { \pgrace { a16 } }
278 cad = { \pgrace { \stemspace #'(0 . 0.5) g32[ e8 d32] } }
279 hcad = { \pgrace { \stemspace #'(0 . 0.5) g32[ e8] } }
280 tcad = { \pgrace { e8[ d32] } }
281 thcad = { \pgrace { e8 } }
282 % This is the same as thrwe
283 dre = { \pgrace { e32[ a f a] } }
284 % This is the same as thrwf
285 dare = { \pgrace { f32[ e g e] } }
286 bari = { \pgrace { e32[ G f G] } }
287 dari = { \pgrace { f32[ e g e f e] } }
288 pthrwd = { \pgrace { G16[ d32 c] } }
289 darodo = { \pgrace { G32[ d G c G] } }
290 Gdarodo = { \pgrace { d32[ G c G] } }
291 pdarodo = { \pgrace { G16[ d32 G c G16] } }
292 pGdarodo = { \pgrace { d32[ G c G16] } }
293 % Weird stuff from Joseph MacDonald’s book
294 fifteenthcutting = { \pgrace { G32[ d a e a f a e a d] } }
295 fifteenthcuttingG = { \pgrace { G32[ d a e G f G e G d] } }
296 Gfifteenthcutting = { \pgrace { d32[ a e a f a e a d] } }
297 GfifteenthcuttingG = { \pgrace { d32[ a e G f G e G d] } }
298 seventeenthcutting = { \pgrace { G32[ d a e a f a e a d a c] } }
299 seventeenthcuttingG = { \pgrace { G32[ d a e G f G e G d G c] } }
300 Gseventeenthcutting = { \pgrace { d32[ a e a f a e a d a c] } }
301 GseventeenthcuttingG = { \pgrace { d32[ a e G f G e G d G c] } }
302 barluadh = { \pgrace { G32[ d a e a f a e a d a c a b a e a f a] } }
303 barluadhG = { \pgrace { G32[ d a e G f G e G d G c G b G e G f G] } }
304 Gbarluadh = { \pgrace { d32[ a e a f a e a d a c a b a e a f a] } }
305 GbarluadhG = { \pgrace { d32[ a e G f G e G d G c G b G e G f G] } }
306 % Non-gracenote piobaireachd markup.
308 \override #'(baseline-skip . 0.4)
310 \musicglyph #"scripts.tenuto"
311 \musicglyph #"scripts.tenuto"
312 \musicglyph #"scripts.tenuto"
315 % Abbreviated notation common in piobaireachd scores.
316 % TODO: Make sure these are put on a fixed Y-position.
317 txtaor = \markup { \center-align "T" }
318 txcrun = \markup { \center-align "C" }
319 txtaorcrun = \markup {
320 \override #'(baseline-skip . 1.8)
326 % Turn these upside down, as in the Kilberry book.
327 txtaoram = \markup { \center-align \scale #'(-1 . -1) "T" }
328 txcrunam = \markup { \center-align \scale #'(-1 . -1) "C" }
329 txtaorcrunam = \markup {
330 \override #'(baseline-skip . 1.8)
332 \center-align \scale #'(-1 . -1) "T"
333 \center-align \scale #'(-1 . -1) "C"