]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/satb.ly
Issue 4435: Remove Solo staff when empty
[lilypond.git] / ly / satb.ly
index 97f4384151ed4623837099f294e74766c96b8af2..2a7e9adb0abc8d66604d47999225718d16c59ae8 100644 (file)
 SATB =
 <<
   \make-one-voice-vocal-staff "Solo" "treble"
-  \new ChoirStaff
-  \with {
-    \override VerticalAxisGroup.remove-empty = ##t
-    \override VerticalAxisGroup.remove-first = ##t
-  }
-  <<
+  \new ChoirStaff <<
     \make-one-voice-vocal-staff "Descant" "treble"
     \make-one-voice-vocal-staff "Women" "treble"
     #(if TwoVoicesPerStaff
@@ -169,6 +164,14 @@ Piano = \make-pianostaff
 
 \tagGroup #'(print play)
 
+\layout {
+  \context {
+    \Staff
+    \override VerticalAxisGroup.remove-empty = ##t
+    \override VerticalAxisGroup.remove-first = ##t
+  }
+}
+
 \score {
   \keepWithTag #'print
   #(if have-music