Hi Robert,

> 16 bars in normal 2-staff PianoStaff on 4 systems. Then follow 4 bars in 
> 3-staff PianoStaff on one system, followed by 12 bars in in normal 2-staff 
> PianoStaff on three systems.

How about this?

%%%  SNIPPET BEGINS
\version "2.19.83"

showMMRs = {
  \set Staff.keepAliveInterfaces =
    #'( rhythmic-grob-interface
        multi-measure-rest-interface
        lyric-interface
        stanza-number-interface
        percent-repeat-interface)
}

letStaffVanish = \set Staff.keepAliveInterfaces = #'()

breaks = {
  \repeat unfold 4 { \repeat unfold 4 { s1 \noBreak } \break }
  \repeat unfold 4 { s1 \noBreak } \break
  \repeat unfold 3 { \repeat unfold 4 { s1 \noBreak } \break }
}

thirdStaffMusic = {
  \clef bass
  R1*16
  \showMMRs c1 1 1 1
  \letStaffVanish
  R1*12
}

\layout {
  \context {
    \PianoStaff
    \remove "Keep_alive_together_engraver"
    \RemoveAllEmptyStaves
  }
}

\score {
  \new PianoStaff <<
    \new Staff << \repeat unfold 32 { c'4 4 4 4 } \breaks >>
    \new Staff << \repeat unfold 32 { c'4 4 4 4 } >>
    \new Staff \thirdStaffMusic
  >>
}
%%%  SNIPPET ENDS

Hope that helps!
Kieren.
________________________________

Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: [email protected]


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

Reply via email to