On Wed, Jan 6, 2021 at 1:12 PM Thomas Morley <thomasmorle...@gmail.com>
wrote:

>
>
> Probably
> http://lsr.di.unimi.it/LSR/Item?id=312
> helps.
>
> Cheers,
>   Harm
>

Great, thanks!

Here's the patched code:

-----------------------------------------------------------------

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

upper  =  {

 c'1 \break
 r \break
 c' \break
 \showMultiRests r \hideMultiRests \break
 c' \break
 r

}

middle =  { d'1 d' d' d' d' d' }
lower  =  { e'1 e' e' e' e' e' }

\score {
  \new PianoStaff <<
    \new Staff = "upper" \upper
    \new Staff = "middle" \middle
    \new Staff = "lower" \lower
  >>
  \layout {
    \context {
      \Staff \RemoveEmptyStaves
    }
    \context {
      \PianoStaff
      \remove "Keep_alive_together_engraver"
    }
  }
}

Reply via email to