\version "2.7.3" global = { \override Score.RemoveEmptyVerticalGroup #'remove-first = ##t s1 \set Score . repeatCommands = #'((volta "1.")) s1 \set Score . repeatCommands = #'((volta #f)) \bar "|." s1 \bar "||" \break \set Score . repeatCommands = #'((volta "2.")) s1 \set Score . repeatCommands = #'((volta #f)) s1 \bar "|." } \score { \new StaffGroup << \new Staff << \global { R1*3 \repeat unfold 2 g'1 } >> \new Staff << \global \repeat unfold 5 e'1 >> \new Staff << \global \repeat unfold 5 c'1 >> >> \layout { raggedright = ##t \context { \RemoveEmptyStaffContext } } }