]> git.donarmstrong.com Git - lilypond.git/blob - ly/bagpipe.ly
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / ly / bagpipe.ly
1 %{
2   Bagpipe music settings for LilyPond.
3   This file builds on work by Andrew McNabb (http://www.mcnabbs.org/andrew/)
4
5   Substantial changes and additions made by
6   Sven Axelsson, the Murray Pipes & Drums of Gothenburg
7   (http://www.murrays.nu)
8
9   $Id: bagpipe.ly,v 1.12 2006/03/16 14:39:46 hanwen Exp $
10 %}
11
12 \version "2.13.29"
13
14 % Notes of the scale of the Great Highland Bagpipe. Extra high notes for bombarde.
15 % Flat notes used mainly in some modern music.
16
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))
32 )
33 pitchnames = \pitchnamesBagpipe
34 #(ly:parser-set-note-names parser pitchnames)
35
36 % Bagpipe music is written in something like D major. If we use
37 % flattened notes, the flat should be shown on all instances.
38
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)
45 }
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)
52 }
53
54 % Layout tweaks.
55
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
64   }
65 }
66
67 % Some common timing tweaks.
68
69 % Sets the autobeamer to span quarter notes only. Use for fast music.
70 % TODO: Needs more tweaking
71 quarterBeaming = {
72   \set Staff.beamExceptions = #'()
73 }
74
75 halfBeaming = {
76   \set Staff.beamExceptions = #'((end . (((1 . 8) . (4 4))
77                                          ((1 . 12) . (3 3)))))
78 }
79
80 % Reels are in allabreve time with half note beaming.
81 reelTime = {
82   \time 2/2
83   \halfBeaming
84 }
85
86 % 4/4 marches are written with numerical time signature and with quarter beaming.
87 marchTime = {
88   \time 4/4
89   \override Staff.TimeSignature #'style = #'()
90   \quarterBeaming
91 }
92
93 % Single grace notes
94 grG = { \grace { \small G32 } }
95 gra = { \grace { \small a32 } }
96 grb = { \grace { \small b32 } }
97 grc = { \grace { \small c32 } }
98 grd = { \grace { \small d32 } }
99 gre = { \grace { \small e32 } }
100 grf = { \grace { \small f32 } }
101 grg = { \grace { \small g32 } }
102 grA = { \grace { \small A32 } }
103
104 % Doublings
105 dblG = { \grace { \small g32[ G d] } }
106 dbla = { \grace { \small g32[ a d] } }
107 dblb = { \grace { \small g32[ b d] } }
108 dblc = { \grace { \small g32[ c d] } }
109 dbld = { \grace { \small g32[ d e] } }
110 dble = { \grace { \small g32[ e f] } }
111 dblf = { \grace { \small g32[ f g] } }
112 % These are the same as the half doublings.
113 dblg = { \grace { \small g32[ f] } }
114 dblA = { \grace { \small A32[ g] } }
115
116 % Half doublings
117 hdblG = { \grace { \small G32[ d] } }
118 hdbla = { \grace { \small a32[ d] } }
119 hdblb = { \grace { \small b32[ d] } }
120 hdblc = { \grace { \small c32[ d] } }
121 hdbld = { \grace { \small d32[ e] } }
122 hdble = { \grace { \small e32[ f] } }
123 hdblf = { \grace { \small f32[ g] } }
124 hdblg = { \grace { \small g32[ f] } }
125 hdblA = { \grace { \small A32[ g] } }
126
127 % Thumb doublings
128 tdblG = { \grace { \small A32[ G d] } }
129 tdbla = { \grace { \small A32[ a d] } }
130 tdblb = { \grace { \small A32[ b d] } }
131 tdblc = { \grace { \small A32[ c d] } }
132 tdbld = { \grace { \small A32[ d e] } }
133 tdble = { \grace { \small A32[ e f] } }
134 tdblf = { \grace { \small A32[ f g] } }
135 tdblg = { \grace { \small A32[ g f] } }
136
137 % Shakes
138 % A few of these can't really be played and are here only for consistency.
139 shakea = { \grace { \small g32[ a d a G] } }
140 shakeb = { \grace { \small g32[ b d b G] } }
141 shakec = { \grace { \small g32[ c d c G] } }
142 shaked = { \grace { \small g32[ d e d G] } }
143 shakee = { \grace { \small g32[ e f e a] } }
144 shakef = { \grace { \small g32[ f g f a] } }
145 shakeg = { \grace { \small A32[ f g a] } }
146 shakeA = { \grace { \small A32[ g A a] } }
147
148 % Half shakes
149 hshakea = { \grace { \small a32[ d a G] } }
150 hshakeb = { \grace { \small b32[ d b G] } }
151 hshakec = { \grace { \small c32[ d c G] } }
152 hshaked = { \grace { \small d32[ e d G] } }
153 hshakee = { \grace { \small e32[ f e a] } }
154 hshakef = { \grace { \small f32[ g f a] } }
155 hshakeg = { \grace { \small g32[ f g a] } }
156 hshakeA = { \grace { \small A32[ g A a] } }
157
158 % Thumb shakes
159 tshakea = { \grace { \small A32[ a d a G] } }
160 tshakeb = { \grace { \small A32[ b d b G] } }
161 tshakec = { \grace { \small A32[ c d c G] } }
162 tshaked = { \grace { \small A32[ d e d G] } }
163 tshakee = { \grace { \small A32[ e f e a] } }
164 tshakef = { \grace { \small A32[ f g f a] } }
165 tshakeg = { \grace { \small A32[ f g a] } }
166 tshakeA = { \grace { \small A32[ g A a] } }
167
168 % Slurs
169 % A few of these can't really be played and are here only for consistency.
170 slura = { \grace { \small g32[ a G] } }
171 slurb = { \grace { \small g32[ b G] } }
172 slurc = { \grace { \small g32[ c G] } }
173 slurd = { \grace { \small g32[ d G] } }
174 slure = { \grace { \small g32[ e a] } }
175 slurf = { \grace { \small g32[ f a] } }
176 slurg = { \grace { \small A32[ f a] } }
177 slurA = { \grace { \small f32[ a] } }
178
179 % Half slurs
180 hslura = { \grace { \small a32[ G] } }
181 hslurb = { \grace { \small b32[ G] } }
182 hslurc = { \grace { \small c32[ G] } }
183 hslurd = { \grace { \small d32[ G] } }
184 hslure = { \grace { \small e32[ a] } }
185 hslurf = { \grace { \small f32[ a] } }
186 hslurg = { \grace { \small g32[ a] } }
187 hslurA = { \grace { \small A32[ a] } }
188
189 % Thumb slurs
190 tslura = { \grace { \small A32[ a G] } }
191 tslurb = { \grace { \small A32[ b G] } }
192 tslurc = { \grace { \small A32[ c G] } }
193 tslurd = { \grace { \small A32[ d a] } }
194 tslure = { \grace { \small A32[ e a] } }
195 tslurf = { \grace { \small A32[ f a] } }
196 tslurg = { \grace { \small A32[ f a] } }
197 tslurA = { \grace { \small f32[ a] } }
198
199 % Catches
200 catcha = { \grace { \small a32[ G d G] } }
201 catchb = { \grace { \small b32[ G d G] } }
202 catchc = { \grace { \small c32[ G d G] } }
203 catchd = { \grace { \small d32[ G b G] } }
204 catche = { \grace { \small e32[ G d G] } }
205
206 % G-grace catches
207 gcatcha = { \grace { \small g32[ a G d G] } }
208 gcatchb = { \grace { \small g32[ b G d G] } }
209 gcatchc = { \grace { \small g32[ c G d G] } }
210 gcatchd = { \grace { \small g32[ d G b G] } }
211 gcatche = { \grace { \small g32[ e G d G] } }
212
213 % Thumb catches
214 tcatcha = { \grace { \small A32[ a G d G] } }
215 tcatchb = { \grace { \small A32[ b G d G] } }
216 tcatchc = { \grace { \small A32[ c G d G] } }
217 tcatchd = { \grace { \small A32[ d G b G] } }
218 tcatche = { \grace { \small A32[ e G d G] } }
219
220 % Throws
221 thrwd     = { \grace { \small G32[ d c] } }
222 Gthrwd    = { \grace { \small d32[ c] } }
223 gripthrwd = { \grace { \small G32[ d G c] } }
224 thrwf     = { \grace { \small f32[ e g e] } }
225
226 % Birls
227 birl  = { \grace { \small a32[ G a G] } }
228 wbirl = { \grace { \small G32[ a G] } }
229 gbirl = { \grace { \small g32[ a G a G] } }
230 dbirl = { \grace { \small d32[ a G a G] } }
231
232 % Grips
233 grip  = { \grace { \small G32[ d G] } }
234 dgrip = { \grace { \small G32[ b G] } }
235 egrip = { \grace { \small G32[ e G] } }
236
237 % Taorluaths
238 taor    = { \grace { \small G32[ d G e] } }
239 dtaor   = { \grace { \small G32[ b G e] } }
240 Gtaor   = { \grace { \small d32[ G e] } }
241 taoramb = { \grace { \small G32[ d G b e] } }
242 taoramc = { \grace { \small G32[ d G c e] } }
243 taoramd = { \grace { \small G32[ d G c d e] } }
244
245 % Crunluaths
246 crun    = { \grace { \small G32[ d G e a f a ] } }
247 dcrun   = { \grace { \small G32[ b G e a f a ] } }
248 Gcrun   = { \grace { \small d32[ G e G f a ] } }
249 crunamb = { \grace { \small G32[ d G b e b f b ] } }
250 crunamc = { \grace { \small G32[ d G c e c f c ] } }
251 crunamd = { \grace { \small G32[ d G c d e d f d ] } }
252
253 % Special piobaireachd notations
254 grGcad  = { \grace { \small G16 } }
255 gracad  = { \grace { \small a16 } }
256 cad     = { \grace { \small g32[ e8 d32] } }
257 hcad    = { \grace { \small g32[ e8] } }
258 dre     = { \grace { \small e32[ a f a] } }
259 % This is the same as thrwf
260 dare    = { \grace { \small f32[ e g e] } }
261 bari    = { \grace { \small e32[ G f G] } }
262 dari    = { \grace { \small f32[ e g e f e] } }
263 pthrwd  = { \grace { \small G16[ d32 c] } }
264 darodo  = { \grace { \small G32[ d G c G] } }
265 Gdarodo = { \grace { \small d32[ G c G] } }
266 % Non-gracenote piobaireachd markup.
267 trebling = \markup {
268   \override #'(baseline-skip . 0.3)
269   \column {
270     \musicglyph #"scripts.tenuto"
271     \musicglyph #"scripts.tenuto"
272     \musicglyph #"scripts.tenuto"
273   }
274 }
275 % Abbreviated notation common in piobaireachd scores.
276 % TODO: Make sure these are put on a fixed Y-position.
277 txtaor = \markup { "T" }
278 txcrun = \markup { "C" }
279 txtaorcrun = \markup { \column { "T" "C" } }
280 % TODO: These characters should be shown upside down.
281 % Use a postscript markup command for this.
282 txtaoram = \markup { "T" }
283 txcrunam = \markup { "C" }
284 txtaorcrunam = \markup { \column { "T" "C" } }