2015-11-05 01:39:52 +01:00
|
|
|
% =================================================== %
|
|
|
|
% Layout tweaks for good defaults %
|
|
|
|
% =================================================== %
|
2016-03-21 16:16:22 +01:00
|
|
|
#(newline)
|
|
|
|
#(display "Layout tweaks loaded")
|
2015-11-05 01:39:52 +01:00
|
|
|
% Note name defs :
|
|
|
|
% "d" for the right hand ("droite") and
|
|
|
|
% "g" for the left hand ("gauche")
|
|
|
|
drumPitchNames =
|
|
|
|
#(append '(
|
|
|
|
(d . right-hand)
|
|
|
|
(g . left-hand)
|
|
|
|
(right . right-hand)
|
|
|
|
(left . left-hand)
|
|
|
|
)
|
|
|
|
drumPitchNames
|
|
|
|
)
|
|
|
|
|
|
|
|
% Position according to the line : right hand above and left hand below
|
|
|
|
#(define pipeband-style '(
|
|
|
|
(right-hand () #f 1)
|
|
|
|
(left-hand () #f -1)
|
|
|
|
)
|
|
|
|
)
|
2016-03-11 23:08:25 +01:00
|
|
|
|
2015-11-05 01:39:52 +01:00
|
|
|
\layout {
|
|
|
|
\context {
|
|
|
|
\DrumStaff
|
|
|
|
\name PipeBandDrumStaff
|
|
|
|
\alias DrumStaff
|
2016-03-11 23:08:25 +01:00
|
|
|
|
|
|
|
drumStyleTable = #(alist->hash-table pipeband-style)
|
|
|
|
|
2015-11-05 01:39:52 +01:00
|
|
|
% one line per staff
|
|
|
|
\override StaffSymbol.line-positions = #'(0)
|
2015-11-05 03:28:25 +01:00
|
|
|
|
2015-11-05 01:39:52 +01:00
|
|
|
% bar line height
|
|
|
|
\override BarLine.bar-extent = #'(-2 . 2)
|
|
|
|
|
|
|
|
% stems
|
|
|
|
\override Stem.direction = #DOWN % stems down
|
2015-11-09 05:59:05 +01:00
|
|
|
\override Stem.length = #8.5 % unbeamed stems length
|
|
|
|
\override Stem.stemlet-length = #1 % short stem length
|
2015-11-05 01:39:52 +01:00
|
|
|
|
|
|
|
% beams
|
|
|
|
\override Beam.beam-thickness = #0.4 % beam-thickness
|
|
|
|
\override Beam.positions = #'(-3.8 . -3.8) % fix beams on one height
|
|
|
|
|
|
|
|
% slurs and ties
|
|
|
|
\override Slur.direction = #UP % Slurs on top
|
|
|
|
\override Tie.direction = #UP % Ties on top
|
|
|
|
|
|
|
|
% dynamics up
|
|
|
|
\dynamicUp
|
|
|
|
|
2017-05-03 13:16:58 +02:00
|
|
|
% This does not work nicely together with marking up flourishes
|
|
|
|
|
2015-11-05 01:39:52 +01:00
|
|
|
% slurs below rolls number
|
|
|
|
%\override TextScript.outside-staff-priority = ##f
|
|
|
|
%\override TextScript.side-axis = #0
|
|
|
|
%\override TextScript.staff-padding = #3
|
2015-11-09 05:59:05 +01:00
|
|
|
%\override TextScript.X-offset = #1 % padding to stems
|
2015-11-05 01:39:52 +01:00
|
|
|
%\override TextScript.extra-offset = #'(-0.3 . 0)
|
|
|
|
|
|
|
|
% tremolos (rolls)
|
|
|
|
\override StemTremolo.slope = #0.5 % slope
|
|
|
|
\override StemTremolo.beam-width = #1.5 % beam-width
|
|
|
|
\override StemTremolo.beam-thickness = #0.3 % beam-thickness
|
|
|
|
\override StemTremolo.extra-offset = #'(0 . 0.3) % vertical pos. position
|
|
|
|
|
|
|
|
\override TupletBracket.bracket-visibility = #'if-no-beams
|
|
|
|
|
|
|
|
% unison brackets
|
|
|
|
\consists "Horizontal_bracket_engraver"
|
|
|
|
\override HorizontalBracket.staff-padding = #3.5 % staff-padding
|
|
|
|
\override HorizontalBracket.direction = #UP % brackets above the staff
|
|
|
|
\override HorizontalBracket.bracket-flare = #'(0 . 0) % vertical brackets
|
|
|
|
|
|
|
|
subdivideBeams = ##t
|
|
|
|
strictBeatBeaming = ##t
|
|
|
|
\numericTimeSignature
|
|
|
|
|
2016-11-23 03:24:56 +01:00
|
|
|
%Because it's funny
|
|
|
|
\override Clef.stencil = #
|
|
|
|
(lambda (grob)(grob-interpret-markup grob
|
|
|
|
#{ \markup\combine
|
|
|
|
\musicglyph #"clefs.percussion"
|
|
|
|
\translate #'(2 . 0)
|
|
|
|
\override #'(baseline-skip . 1)
|
|
|
|
\column {
|
|
|
|
"R"
|
|
|
|
"L"
|
|
|
|
}
|
|
|
|
#}
|
|
|
|
))
|
|
|
|
|
2015-11-05 01:39:52 +01:00
|
|
|
}
|
|
|
|
\context {
|
|
|
|
\Score
|
|
|
|
\accepts "PipeBandDrumStaff"
|
|
|
|
|
|
|
|
\override RehearsalMark.break-align-symbols = #'(clef)
|
|
|
|
\override RehearsalMark.padding = #3
|
|
|
|
\override VoltaBracket.edge-height = #'(1.5 . 1.5)
|
|
|
|
}
|
|
|
|
\context {
|
|
|
|
\StaffGroup
|
|
|
|
\accepts "PipeBandDrumStaff"
|
|
|
|
}
|
2015-11-18 03:03:44 +01:00
|
|
|
}
|
2017-02-02 17:06:20 +01:00
|
|
|
|
|
|
|
% Explicit bar lines (End + Repeat)
|
|
|
|
#(define-bar-line ".|:-|." "|." ".|:" "|.")
|