More tweaks.

This commit is contained in:
Sven Axelsson 2011-01-03 10:19:37 +01:00
parent d18920f452
commit 515b9effcd
2 changed files with 66 additions and 58 deletions

View File

@ -112,20 +112,11 @@ showTrueKeySignature = {
% Sets the autobeamer to span quarter notes only. Use for fast music. % Sets the autobeamer to span quarter notes only. Use for fast music.
quarterBeaming = { quarterBeaming = {
#(override-auto-beam-setting '(end * * * *) 1 4 'Staff) \set Staff.beamExceptions = #'()
#(override-auto-beam-setting '(end * * * *) 1 2 'Staff)
#(override-auto-beam-setting '(end * * * *) 3 4 'Staff)
#(override-auto-beam-setting '(end * * * *) 4 4 'Staff)
#(revert-auto-beam-setting '(end 1 32 2 4 ) 1 8 'Staff)
#(revert-auto-beam-setting '(end 1 32 2 4 ) 3 8 'Staff)
#(revert-auto-beam-setting '(end 1 32 4 4 ) 1 8 'Staff)
#(revert-auto-beam-setting '(end 1 32 4 4 ) 3 8 'Staff)
#(revert-auto-beam-setting '(end 1 32 4 4 ) 5 8 'Staff)
#(revert-auto-beam-setting '(end 1 32 4 4 ) 7 8 'Staff)
} }
halfBeaming = { halfBeaming = {
#(override-auto-beam-setting '(end * * 2 2) 1 2 'Staff) \set Staff.beamExceptions = #'((end . (((1 . 8) . (4 4))
#(override-auto-beam-setting '(end * * 2 2) 2 2 'Staff) ((1 . 12) . (3 3)))))
} }
% Reels are in allabreve time with half note beaming. % Reels are in allabreve time with half note beaming.
@ -141,13 +132,15 @@ marchTime = {
} }
% Add appropriate tweaks needed for piping grace notes to look great. % Add appropriate tweaks needed for piping grace notes to look great.
pgrace = #(define-music-function (parser location notes) (ly:music?) stemspace = #(define-music-function (parser location extent) (pair?) #{
#{ \override Score.GraceSpacing #'spacing-increment = #0 \once \override Staff.Stem #'X-extent = #$extent
\override Score.Stem #'beamlet-default-length = #'(0.6 . 0.6) #})
\grace $notes pgrace = #(define-music-function (parser location notes) (ly:music?) #{
\revert Score.Stem #'beamlet-default-length \override Score.GraceSpacing #'spacing-increment = #0
#} \override Score.Stem #'beamlet-max-length-proportion = #'(0.5 . 0.5)
) \grace $notes
\revert Score.Stem #'beamlet-default-length
#})
% Single pgrace notes % Single pgrace notes
grG = { \pgrace { \small G32 } } grG = { \pgrace { \small G32 } }
@ -226,34 +219,37 @@ tshakeA = { \pgrace { \small A32[ g A a] } }
% Slurs % Slurs
% A few of these can't really be played and are here only for consistency. % A few of these can't really be played and are here only for consistency.
slura = { \pgrace { \small g32[ a G] } } slura = { \pgrace { \small g32[ a G] } }
slurb = { \pgrace { \small g32[ b G] } } slurb = { \pgrace { \small g32[ b G] } }
slurc = { \pgrace { \small g32[ c G] } } slurc = { \pgrace { \small g32[ c G] } }
slurd = { \pgrace { \small g32[ d G] } } slurd = { \pgrace { \small g32[ d G] } }
slure = { \pgrace { \small g32[ e a] } } wslurd = { \pgrace { \small g32[ d c] } }
slurf = { \pgrace { \small g32[ f a] } } slure = { \pgrace { \small g32[ e a] } }
slurg = { \pgrace { \small A32[ f a] } } slurf = { \pgrace { \small g32[ f a] } }
slurA = { \pgrace { \small f32[ a] } } slurg = { \pgrace { \small A32[ f a] } }
slurA = { \pgrace { \small f32[ a] } }
% Half slurs % Half slurs
hslura = { \pgrace { \small a32[ G] } } hslura = { \pgrace { \small a32[ G] } }
hslurb = { \pgrace { \small b32[ G] } } hslurb = { \pgrace { \small b32[ G] } }
hslurc = { \pgrace { \small c32[ G] } } hslurc = { \pgrace { \small c32[ G] } }
hslurd = { \pgrace { \small d32[ G] } } hslurd = { \pgrace { \small d32[ G] } }
hslure = { \pgrace { \small e32[ a] } } whslurd = { \pgrace { \small d32[ c] } }
hslurf = { \pgrace { \small f32[ a] } } hslure = { \pgrace { \small e32[ a] } }
hslurg = { \pgrace { \small g32[ a] } } hslurf = { \pgrace { \small f32[ a] } }
hslurA = { \pgrace { \small A32[ a] } } hslurg = { \pgrace { \small g32[ a] } }
hslurA = { \pgrace { \small A32[ a] } }
% Thumb slurs % Thumb slurs
tslura = { \pgrace { \small A32[ a G] } } tslura = { \pgrace { \small A32[ a G] } }
tslurb = { \pgrace { \small A32[ b G] } } tslurb = { \pgrace { \small A32[ b G] } }
tslurc = { \pgrace { \small A32[ c G] } } tslurc = { \pgrace { \small A32[ c G] } }
tslurd = { \pgrace { \small A32[ d a] } } tslurd = { \pgrace { \small A32[ d G] } }
tslure = { \pgrace { \small A32[ e a] } } wtslurd = { \pgrace { \small A32[ d c] } }
tslurf = { \pgrace { \small A32[ f a] } } tslure = { \pgrace { \small A32[ e a] } }
tslurg = { \pgrace { \small A32[ f a] } } tslurf = { \pgrace { \small A32[ f a] } }
tslurA = { \pgrace { \small f32[ a] } } tslurg = { \pgrace { \small A32[ f a] } }
tslurA = { \pgrace { \small f32[ a] } }
% Catches % Catches
catcha = { \pgrace { \small a32[ G d G] } } catcha = { \pgrace { \small a32[ G d G] } }
@ -322,8 +318,8 @@ crunamdfosg = { \pgrace { \small e32[ d f d ] } }
% Special piobaireachd notations % Special piobaireachd notations
grGcad = { \pgrace { \small G16 } } grGcad = { \pgrace { \small G16 } }
gracad = { \pgrace { \small a16 } } gracad = { \pgrace { \small a16 } }
cad = { \pgrace { \small g32[ e8 d32] } } cad = { \pgrace { \small \stemspace #'(0 . 0.5) g32[ e8 d32] } }
hcad = { \pgrace { \small g32[ e8] } } hcad = { \pgrace { \small \stemspace #'(0 . 0.5) g32[ e8] } }
tcad = { \pgrace { \small e8[ d32] } } tcad = { \pgrace { \small e8[ d32] } }
thcad = { \pgrace { \small e8 } } thcad = { \pgrace { \small e8 } }
% This is the same as thrwe % This is the same as thrwe
@ -352,7 +348,7 @@ Gbarluadh = { \pgrace { \small d32[ a e a f a e a d a c a b a e a f a] } }
GbarluadhG = { \pgrace { \small d32[ a e G f G e G d G c G b G e G f G] } } GbarluadhG = { \pgrace { \small d32[ a e G f G e G d G c G b G e G f G] } }
% Non-gracenote piobaireachd markup. % Non-gracenote piobaireachd markup.
trebling = \markup { trebling = \markup {
\override #'(baseline-skip . 0.3) \override #'(baseline-skip . 0.4)
\column { \column {
\musicglyph #"scripts.tenuto" \musicglyph #"scripts.tenuto"
\musicglyph #"scripts.tenuto" \musicglyph #"scripts.tenuto"
@ -361,15 +357,21 @@ trebling = \markup {
} }
% Abbreviated notation common in piobaireachd scores. % Abbreviated notation common in piobaireachd scores.
% TODO: Make sure these are put on a fixed Y-position. % TODO: Make sure these are put on a fixed Y-position.
txtaor = \markup { "T" } txtaor = \markup { \center-align "T" }
txcrun = \markup { "C" } txcrun = \markup { \center-align "C" }
txtaorcrun = \markup { txtaorcrun = \markup {
\override #'(baseline-skip . 1.8) \override #'(baseline-skip . 1.8)
\column { "T" "C" } \column {
\center-align "T"
\center-align "C"
}
} }
txtaoram = \markup { "T" } txtaoram = \markup { \center-align \scale #'(-1 . -1) "T" }
txcrunam = \markup { "C" } txcrunam = \markup { \center-align \scale #'(-1 . -1) "C" }
txtaorcrunam = \markup { txtaorcrunam = \markup {
\override #'(baseline-skip . 1.8) \override #'(baseline-skip . 1.8)
\column { "T" "C" } \column {
\center-align \scale #'(-1 . -1) "T"
\center-align \scale #'(-1 . -1) "C"
}
} }

View File

@ -18,7 +18,11 @@
ragged-bottom = ##t ragged-bottom = ##t
} }
\layout { \layout {
indent = 30\mm indent = 30\mm
\context {
\Score
\override NonMusicalPaperColumn #'line-break-permission = ##f
}
} }
\score { \score {
@ -65,12 +69,12 @@
{ {
\bagpipeKey \bagpipeKey
\set Staff.instrumentName = "Slurs " \set Staff.instrumentName = "Slurs "
\slura a \slurb b \slurc c \slurd d \slura a \slurb b \slurc c \slurd d \wslurd d
\slure e \slurf f \slurg g \slurA A \slure e \slurf f \slurg g \slurA A
\hslurf f \tslurf f \hslurf f \tslurf f
} }
\addlyrics { \addlyrics {
"\slura" "\slurb" "\slurc" "\slurd" "\slura" "\slurb" "\slurc" "\slurd" "\wslurd"
"\slure" "\slurf" "\slurg" "\slurA" "\slure" "\slurf" "\slurg" "\slurA"
"\hslurf" "\\tslurf" "\hslurf" "\\tslurf"
} }
@ -164,10 +168,12 @@
\set Staff.instrumentName = \markup { "Crunluath " } \set Staff.instrumentName = \markup { "Crunluath " }
e \crun e d \dcrun e G \Gcrun e e \crun e d \dcrun e G \Gcrun e
b \crunamb e c \crunamc e b \crunamd e b \crunamb e c \crunamc e b \crunamd e
s16 \grg a8[ \grd b16 \crunambfosg b] s16 \grg a8[ \grd c16 \crunamcfosg c]
} }
\addlyrics { \addlyrics {
\skip 4 "\\crun" \skip 4 "\dcrun" \skip 4 "\Gcrun" \skip 4 "\\crun" \skip 4 "\dcrun" \skip 4 "\Gcrun"
\skip 4 "\\crunamb" \skip 4 "\\crunamc" \skip 4 "\\crunamd" \skip 4 "\\crunamb" \skip 4 "\\crunamc" \skip 4 "\\crunamd"
\skip 4 "\\crunambfosg" \skip 4 "\\crunamcfosg"
} }
} }
@ -177,13 +183,13 @@
\set Staff.instrumentName = \markup { \column { "Piobaireachd " "notation " } } \set Staff.instrumentName = \markup { \column { "Piobaireachd " "notation " } }
\cad c4 A \hcad c \cad c4 A \hcad c
e \gracad e d \grGcad d e \gracad e d \grGcad d
a \pthrwd d c \darodo b G \Gdarodo c a \pthrwd d c \darodo b c \pdarodo b G \Gdarodo c
a \dre e G \bari g e \dari g e \dare f a \dre e G \bari g e \dari g e \dare f
} }
\addlyrics { \addlyrics {
"\cad" \skip 4 "\hcad" "\cad" \skip 4 "\hcad"
\skip 4 "\gracad" \skip 4 "\grGcad" \skip 4 "\gracad" \skip 4 "\grGcad"
\skip 4 "\pthrwd" \skip 4 "\darodo" \skip 4 "\Gdarodo" \skip 4 "\pthrwd" \skip 4 "\darodo" \skip 4 "\pdarodo" \skip 4 "\Gdarodo"
\skip 4 "\dre" \skip 4 "\bari" \skip 4 "\dari" \skip 4 "\dare" \skip 4 "\dre" \skip 4 "\bari" \skip 4 "\dari" \skip 4 "\dare"
} }
} }
@ -248,6 +254,6 @@
\header { \header {
title = "Cheat sheet for entering bagpipe music" title = "Cheat sheet for entering bagpipe music"
subtitle = "Intended for Lilypond 2.12 or better" subtitle = "Intended for Lilypond 2.14 or better"
tagline = \markup { "P/S Sven Axelsson, The Murray Pipes & Drums of Gothenburg" } tagline = \markup { "P/S Sven Axelsson, The Murray Pipes & Drums of Gothenburg" }
} }