Re: Extending staff lines through key change

2015-12-13 Thread Pierre Perol-Schneider
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


Re: Extending staff lines through key change

2015-12-13 Thread Thomas Morley
2015-12-12 22:41 GMT+01:00 Cynthia Karl :
> 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?



As off
http://lists.gnu.org/archive/html/lilypond-devel/2015-04/msg00067.html

\new Staff \with {
  %% extends the StaffSymbol including the first entry of:
  \override StaffSymbol.break-align-symbols =
   #'(key-signature key-cancellation time-signature staff-bar break-alignment)
}
\relative c'' {
  \key g\major
  \repeat unfold 4 { c d e fis }
  \break
  \key f\major
  \repeat unfold 4 { c d e f }
  c d e f
  \mark\markup { D.C. }
  %% Maybe add:
  \override Staff.KeySignature.X-extent = #'(0 . 1.5)
  \key g\major
}

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Extending staff lines through key change

2015-12-12 Thread Cynthia Karl
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?___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extending staff lines through key change

2015-12-12 Thread tisimst
Just add a "s8" after the key change.

HTH,
Abraham

On Saturday, December 12, 2015, Cynthia Karl [via Lilypond] <
ml-node+s1069038n184706...@n5.nabble.com> wrote:

> 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?
>
> ___
> lilypond-user mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node=184706=0>
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/Extending-staff-lines-through-key-change-tp184706.html
> To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> <javascript:_e(%7B%7D,'cvml','ml-node%2bs1069038n...@n5.nabble.com');>
> To unsubscribe from Lilypond, click here
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=2=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=>
> .
> NAML
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Extending-staff-lines-through-key-change-tp184706p184711.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extending staff lines through key change

2015-12-12 Thread David Sumbler
> > 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


Re: Extending staff lines through key change

2015-12-12 Thread Pierre Perol-Schneider
Hi,

see a recent conversation:
http://lilypond.1069038.n5.nabble.com/WAS-Staff-ends-before-clef-time-and-key-td183976.html

HTH,
~Pierre

2015-12-12 22:41 GMT+01:00 Cynthia Karl :

> 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?
>
> ___
> 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