\version "2.13.7" % This sample score has the following structure: % Measures 1-3: tutti, empty staves should be kept % measures 4-6: solo, empty staves of the 2. & 3. voice should be removed % measures 7-end: tutti, empty staves should be kept again \layout { \context { \RemoveEmptyStaffContext } \context { \Staff \override VerticalAxisGroup #'remove-empty = ##f } } m = \relative c'' { c1^"Tutti" c c c^"Solo" c c c^"Tutti" c } musicA = \relative c' { d1 d R1 | % We want to remove empty staves only during the Solo! % this does not have any effect! \override Staff.VerticalAxisGroup #'remove-empty = ##t R1*3 | \override Staff.VerticalAxisGroup #'remove-empty = ##f R1 e1 \bar"|." } musicB = \relative c' { d1 R1 b1 | % We want to remove empty staves only during the Solo! \override VerticalAxisGroup #'remove-empty = ##t R1*3 | \override VerticalAxisGroup #'remove-empty = ##f c1 c1 \bar"|." } \score { << \new Staff \with { shortInstrumentName = "V1" } { << \m \repeat unfold 8 {s1\break} >> } \new Staff \with { shortInstrumentName = "V2" } { \musicA } \new Staff \with { shortInstrumentName = "V3" } { \musicB } >> }