Comment #1 on issue 660 by alans...@prosoidia.com: ossia staff doesn't stop at correct horizontal position
http://code.google.com/p/lilypond/issues/detail?id=660

The same thing happens if, instead of removing the engraver, you remove the stencil. As a workaround, the following code replaces the stencil with a white box that covers
the extra staff lines to the right of the bar line:

TSwo =  {
\once \override Staff.TimeSignature #'X-extent =  #'(0 . 1.6)
\once \override Staff.TimeSignature #'stencil = #ly:text-interface::print
\once \override Staff.TimeSignature #'text = \markup  {
\with-color #white \filled-box #'(-0.7 . 3) #'(-2.5 . 2.5)  #1 }
}

%%original snippet with stencil removed twice, replaced with white box the final time

\relative c'' {
  \time 2/4 c2 |

  << { c2 }
     \new Staff
     { \override Staff.TimeSignature #'stencil = ##f
      c2 | } >>

  << { c2 }
     \new Staff
     { \override Staff.TimeSignature #'stencil = ##f

     c2  | \TSwo } >>

  \time 3/4 c2. |
}


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to