lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trouble with RemoveEmptyStaffContext


From: Graham King
Subject: Re: trouble with RemoveEmptyStaffContext
Date: Wed, 02 Apr 2014 11:12:05 +0100

On Wed, 2014-04-02 at 07:48 +0200, Jan-Peter Voigt wrote:
Hi Graham,

you will most likely have a PianoStaff for the keys and a ChoirStaff or StaffGroup (or the like) for the choir. You can consist a grouping context (ChoirStaff,StaffGroup,...) with:


\consists "Keep_alive_together_engraver"


That way the whole group disappears only, if all child-context would disappear on there own.


IIRC the PianoStaff context consists this engraver per default.



HTH


Jan-Peter

Many thanks Jan-Peter,
this works perfectly.  For the benefit of others, I applied it (after a short struggle) thus:

\score {
    <<
    \new ChoirStaff
    <<
      \set ChoirStaff.systemStartDelimiter = #'SystemStartBar
      \sopranoVoicePart
      \altoVoicePart
      \tenorVoicePart
      \bassVoicePart
    >>
    \pianoPart
  >>
  \layout {
      \context { \ChoirStaff \consists Keep_alive_together_engraver }
      \context { \RemoveEmptyStaffContext }
  }
}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]