Hi All, adding s8 or s16 do not work properly since it makes end staff longer. The solution I use nowadays is not elegant but works perfectly :
\version "2.19.32" end-staff = \markup \with-dimensions #'(0 . 0) #'(0 . 0) \stencil #(make-path-stencil '(M 0 -2 L 3.63 -2 M 0 -1 L 3.63 -1 M 0 0 L 3.63 0 M 0 1 L 3.63 1 M 0 2 L 3.63 2) 0.12 1 1 #f) endBarDC = { \once \override Staff.BarLine.stencil = #(lambda (grob) (ly:stencil-combine-at-edge (ly:bar-line::print grob) X RIGHT (grob-interpret-markup grob end-staff) 0)) \bar "|" } \markup\score { \relative c'' { \key g\major \repeat unfold 4 { c d e fis } \break \key f\major \repeat unfold 4 { c d e f } \endBarDC \mark\markup { D.C. } \key g\major } \layout {} } Cheers ~Pierre 2015-12-13 0:27 GMT+01:00 David Sumbler <da...@aeolia.co.uk>: > > > From: Cynthia Karl <pck...@mac.com> > > > To: lilypond-user <lilypond-user@gnu.org> > > > Subject: Extending staff lines through key change > > > Date: Sat, 12 Dec 2015 15:41:32 -0600 > > > > > > I’m engraving a piece that ends with a D.C. al Fine. Also the key > > > at the beginning of the piece is different from the key at the end > > > of the piece. So, in order to cue the performer, a final key change > > > is issued for the initial key: > > > > > > > > > \version "2.19.32" > > > > > > > > > { \relative c'' { > > > \key g\major > > > \repeat unfold 4 { c d e fis } > > > \break > > > > > > > > > > > > \key f\major > > > \repeat unfold 4 { c d e f } > > > \mark\markup { D.C. } > > > \key g\major > > > } } > > > > > > > > > The problem with this is that the staff lines do not extend through > > > the final key change. Is there a way do do this? > > I had a similar problem, which was solved by adding a spacer rest after > the last complete bar: > > c4 d e f \mark \markup { D.C. } \key g \major s16 > > David > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user