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 }
  }
}

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to