summaryrefslogtreecommitdiff
path: root/layouts.ly
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-02-23 11:59:26 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-02-23 11:59:26 +0100
commit15e26d5cf1cc3ffc0b28db94744bfc33b4932409 (patch)
tree1a3e4e62f664c744d392bac5e676dc5d92dd096f /layouts.ly
parent42da410946a5f6338922e07ba85001fa51660d56 (diff)
Make all songs share the same score layouts.
Diffstat (limited to 'layouts.ly')
-rw-r--r--layouts.ly32
1 files changed, 32 insertions, 0 deletions
diff --git a/layouts.ly b/layouts.ly
new file mode 100644
index 0000000..b382da2
--- /dev/null
+++ b/layouts.ly
@@ -0,0 +1,32 @@
+%% Two scores are needed to separately control MIDI and notation
+%% output.
+\score {
+ \unfoldRepeats {
+ <<
+ \AllMusic
+ \new DrumStaff { \click }
+ >>
+ }
+ \midi {}
+}
+
+\score {
+ %% Always unfold repeats in the big score. The individual parts can
+ %% have repeats as they wish.
+ \unfoldRepeats { \AllMusic }
+ \layout {
+ \context {
+ %% add the RemoveEmptyStaffContext that erases rest-only staves
+ \Staff \RemoveEmptyStaves
+ }
+ \context {
+ \Score
+ \numericTimeSignature
+ markFormatter = #format-mark-box-alphabet
+ %% Remove all-rest staves also in the first system
+ \override VerticalAxisGroup.remove-first = ##t
+ %% If only one non-empty staff in a system exists, still print the starting bar
+ \override SystemStartBar.collapse-height = #1
+ }
+ }
+}