\version "2.19.27" \header { title = "Circus" composer = "The very pretentious elephlies" copyright = \markup { \char ##x00A9 "2002—2016 Ricardo Wurmus" } } \include "../settings.ly" \include "music/bass.ly" \include "music/keys.ly" \include "music/stick.ly" \include "music/click.ly" \layout { ragged-last = ##t indent = 2\cm short-indent = 1.5\cm } AllMusic = << \new PianoStaff = "keyboard" \with { instrumentName = #"Synthesizer" shortInstrumentName = #"Synth" pedalSustainStyle = #'bracket } { << \new Staff { \clef treble \keyboardUpper } \new Staff { \clef bass \keyboardLower } >> } \new StaffGroup = "bass" \with { instrumentName = #"Bass" shortInstrumentName = #"Bass" } { \bass } \new PianoStaff = "grand stick" \with { instrumentName = #"Grand Stick" shortInstrumentName = #"Stick" midiInstrument = #"clav" pedalSustainStyle = #'bracket } { \stick } >> %% Two scores are needed: one with unfolded repeats for MIDI and the %% other with regular repeats for notation. \score { \unfoldRepeats { << \AllMusic \new DrumStaff { \click } >> } \midi { \tempo 4 = 120 } } \score { \AllMusic \layout { \tempo 4 = 120 \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 } } }