mirror of
https://github.com/kastdeur/bagpipe.ly.git
synced 2025-01-07 00:13:35 +01:00
Moved Layout into own file
This commit is contained in:
parent
bd29d4f030
commit
20213c19a6
2 changed files with 70 additions and 75 deletions
76
bagpipe.ly
76
bagpipe.ly
|
@ -9,81 +9,6 @@
|
||||||
|
|
||||||
\version "2.19.28"
|
\version "2.19.28"
|
||||||
|
|
||||||
|
|
||||||
% Bagpipe music is written in something like D major. If we use
|
|
||||||
% flattened notes, the flat should be shown on all instances.
|
|
||||||
bagpipeKey = {
|
|
||||||
\key d \major
|
|
||||||
\accidentalStyle forget
|
|
||||||
}
|
|
||||||
|
|
||||||
% Show the key signature e.g. for BMW compatibility.
|
|
||||||
showKeySignature = {
|
|
||||||
\override Staff.KeySignature.stencil = #'ly:key-signature-interface::print
|
|
||||||
\override StaffGroup.KeySignature.stencil = #'ly:key-signature-interface::print
|
|
||||||
\override Score.KeySignature.stencil = #'ly:key-signature-interface::print
|
|
||||||
}
|
|
||||||
|
|
||||||
% Show the true key signature (E-flat major). Use together with
|
|
||||||
% \transpose f a to print scores for other instruments.
|
|
||||||
showTrueKeySignature = {
|
|
||||||
\override Staff.KeySignature.stencil = #'ly:key-signature-interface::print
|
|
||||||
\override StaffGroup.KeySignature.stencil = #'ly:key-signature-interface::print
|
|
||||||
\override Score.KeySignature.stencil = #'ly:key-signature-interface::print
|
|
||||||
\override Score.Stem.direction = #'center
|
|
||||||
\override Score.Slur.direction = #'center
|
|
||||||
\override Score.Tie.direction = #'center
|
|
||||||
}
|
|
||||||
|
|
||||||
% gracenotesOff = #(set! showGracenotes ##f)
|
|
||||||
% gracenotesOn = #(set! showGracenotes ##t)
|
|
||||||
% \gracenotesOn
|
|
||||||
|
|
||||||
% Various tweaks to get good defaults for bagpipe music.
|
|
||||||
\paper {
|
|
||||||
top-margin = 4\mm
|
|
||||||
bottom-margin = 4\mm
|
|
||||||
}
|
|
||||||
|
|
||||||
\layout {
|
|
||||||
indent = 0.0
|
|
||||||
|
|
||||||
\context {
|
|
||||||
\Score
|
|
||||||
|
|
||||||
\remove "Bar_number_engraver"
|
|
||||||
|
|
||||||
\override Stem.direction = #down
|
|
||||||
\override Slur.direction = #up
|
|
||||||
\override Tie.direction = #up
|
|
||||||
|
|
||||||
\override VoltaBracketSpanner.Y-extent = #'(-1.5 . 0)
|
|
||||||
\override VoltaBracket.height = #2.2
|
|
||||||
}
|
|
||||||
|
|
||||||
\context {
|
|
||||||
\StaffGroup
|
|
||||||
|
|
||||||
extraNatural = ##f
|
|
||||||
\override KeySignature.stencil = ##f
|
|
||||||
}
|
|
||||||
|
|
||||||
\context {
|
|
||||||
\Staff
|
|
||||||
|
|
||||||
extraNatural = ##f
|
|
||||||
midiInstrument = #"bagpipe"
|
|
||||||
|
|
||||||
\override KeySignature.stencil = ##f
|
|
||||||
}
|
|
||||||
|
|
||||||
\context {
|
|
||||||
\Voice
|
|
||||||
|
|
||||||
\override TupletBracket.bracket-visibility = ##t
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
% Some common timing tweaks.
|
% Some common timing tweaks.
|
||||||
|
|
||||||
% Sets the autobeamer to span quarter notes only. Use for fast music.
|
% Sets the autobeamer to span quarter notes only. Use for fast music.
|
||||||
|
@ -113,3 +38,4 @@ marchTime = {
|
||||||
|
|
||||||
\include "lib/pitchnames.ily"
|
\include "lib/pitchnames.ily"
|
||||||
\include "lib/embellishments.ily"
|
\include "lib/embellishments.ily"
|
||||||
|
\include "lib/layout_tweaks.ily"
|
||||||
|
|
69
lib/layout_tweaks.ily
Normal file
69
lib/layout_tweaks.ily
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
% =================================================== %
|
||||||
|
% Layout Tweaks %
|
||||||
|
% =================================================== %
|
||||||
|
|
||||||
|
% Bagpipe music is written in something like D major. If we use
|
||||||
|
% flattened notes, the flat should be shown on all instances.
|
||||||
|
bagpipeKey = {
|
||||||
|
\key d \major
|
||||||
|
\accidentalStyle forget
|
||||||
|
}
|
||||||
|
|
||||||
|
% Show the key signature e.g. for BMW compatibility.
|
||||||
|
showKeySignature = {
|
||||||
|
\override Staff.KeySignature.stencil = #'ly:key-signature-interface::print
|
||||||
|
\override StaffGroup.KeySignature.stencil = #'ly:key-signature-interface::print
|
||||||
|
\override Score.KeySignature.stencil = #'ly:key-signature-interface::print
|
||||||
|
}
|
||||||
|
|
||||||
|
% Show the true key signature (E-flat major). Use together with
|
||||||
|
% \transpose f a to print scores for other instruments.
|
||||||
|
showTrueKeySignature = {
|
||||||
|
\override Staff.KeySignature.stencil = #'ly:key-signature-interface::print
|
||||||
|
\override StaffGroup.KeySignature.stencil = #'ly:key-signature-interface::print
|
||||||
|
\override Score.KeySignature.stencil = #'ly:key-signature-interface::print
|
||||||
|
\override Score.Stem.direction = #'center
|
||||||
|
\override Score.Slur.direction = #'center
|
||||||
|
\override Score.Tie.direction = #'center
|
||||||
|
}
|
||||||
|
|
||||||
|
%%% Layout
|
||||||
|
\layout {
|
||||||
|
indent = 0.0
|
||||||
|
|
||||||
|
\context {
|
||||||
|
\Score
|
||||||
|
|
||||||
|
\remove "Bar_number_engraver"
|
||||||
|
|
||||||
|
\override Stem.direction = #down
|
||||||
|
\override Slur.direction = #up
|
||||||
|
\override Tie.direction = #up
|
||||||
|
|
||||||
|
\override VoltaBracketSpanner.Y-extent = #'(-1.5 . 0)
|
||||||
|
\override VoltaBracket.height = #2.2
|
||||||
|
}
|
||||||
|
|
||||||
|
\context {
|
||||||
|
\StaffGroup
|
||||||
|
|
||||||
|
extraNatural = ##f
|
||||||
|
\override KeySignature.stencil = ##f
|
||||||
|
}
|
||||||
|
|
||||||
|
\context {
|
||||||
|
\Staff
|
||||||
|
|
||||||
|
extraNatural = ##f
|
||||||
|
midiInstrument = #"bagpipe"
|
||||||
|
|
||||||
|
\override KeySignature.stencil = ##f
|
||||||
|
}
|
||||||
|
|
||||||
|
\context {
|
||||||
|
\Voice
|
||||||
|
|
||||||
|
\override TupletBracket.bracket-visibility = ##t
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue