]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4435: Remove Solo staff when empty
authorTrevor Daniels <t.daniels@treda.co.uk>
Sat, 6 Jun 2015 21:22:13 +0000 (22:22 +0100)
committerTrevor Daniels <t.daniels@treda.co.uk>
Sun, 14 Jun 2015 10:27:16 +0000 (11:27 +0100)
  The recently added Solo staff is outside the ChoirStaff and so
  is not affected by the ChoirStaff overrides to VerticalAxisGroup.
  This patch moves the overrides into a \layout block at top level
  so all staves are affected.  The overrides in PianoStaff are then
  no longer required.  Note that this \layout block can itself be
  overridden by setting the Layout variable.

ly/piano-tkit.ly
ly/satb.ly

index 73ccb6685ad899d5b7ed00e50cf6b3f681f11815..2ec4b14e9fc6bf2b8f7c013155c99ba086140589 100644 (file)
@@ -32,8 +32,6 @@ make-pianostaff =
       #(if PianoShortInstrumentName
            PianoShortInstrumentName
            "")
-    \override VerticalAxisGroup.remove-empty = ##t
-    \override VerticalAxisGroup.remove-first = ##t
   }
   <<
     \make-one-voice-staff ##f "PianoRH" "treble" ""
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