From 15e26d5cf1cc3ffc0b28db94744bfc33b4932409 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 23 Feb 2017 11:59:26 +0100 Subject: Make all songs share the same score layouts. --- layouts.ly | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 layouts.ly (limited to 'layouts.ly') 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 + } + } +} -- cgit v1.2.3