\version "2.18.2" \score { << \new StaffGroup << \new Staff = "1" {\repeat unfold 20 {c4 d e f}} \new Dynamics {\repeat unfold 20 { c4\p r r r }} \new DrumStaff = "2" {\repeat unfold 20 { R1} } >> \new PianoStaff << \new Staff = "P1" {\repeat unfold 8 {c4 d e f} R1*12} \new Dynamics {\repeat unfold 8 {c4\p r r r } R1*12} \new Staff = "P2" {\repeat unfold 20 {R1}} >> >> \layout { \context { \Score %\RemoveEmptyStaves } \context { \PianoStaff %\RemoveEmptyStaves } \context { \Dynamics } \context { \DrumStaff \RemoveEmptyStaves } } }