\version "2.19.27" \header { title = "Circus" composer = "The very pretentious elephlies" copyright = \markup { \char ##x00A9 "2002—2016 Ricardo Wurmus" } } \include "../settings.ly" \include "parts/bass.ly" \include "parts/keyboard.ly" \include "parts/stick.ly" \include "parts/click.ly" AllMusic = << \new Staff = "keyboard" { \keyboard } \new Staff = "bass" { \bass } \new Staff = "grand stick" { \stick } \new DrumStaff { \click } >> %% Two scores are needed: one with unfolded repeats for MIDI and the %% other with regular repeats for notation. \score { \unfoldRepeats { \AllMusic } \midi { \tempo 4 = 120 } } \score { \AllMusic \layout { \tempo 4 = 120 \context { %% add the RemoveEmptyStaffContext that erases rest-only staves \Staff \RemoveEmptyStaves } \context { \Score \numericTimeSignature %% 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 } } }