As explained in the docs:

http://www.lilypond.org/doc/v2.18/Documentation/notation/visibility-of-objects#special-considerations

the syntax \override Staff.KeySignature.break-visibility = #...

only affects the key signature at the *beginning* of the line (not sure
why, but that's what it says). The correct syntax, it says, is

\set Staff.explicitKeySignatureVisibility = #end-of-line-invisible

which works for me.

HTH,
Abraham


On Mon, Apr 20, 2015 at 2:13 PM, SonusProj . [via Lilypond] <
ml-node+s1069038n174876...@n5.nabble.com> wrote:

> I am quite sure that I am improperly applying the method to make invisible
> the key signature at the end of a line when the key changes beginning on
> the next staff.
>
> The code below shows my attempt to use the method in two different manners
> at several points.  I have commented out the non-working code.  However,
> compilation works fine.
>
> I don't actually know which object I am to be overriding and which is
> proper syntax.  I have seen several examples written in the forms I have
> shown.  The ??? is my indication of "Which" object?
>
> harmonies = \chordmode {
>   c1:maj7 d:m7 e:m7 f:maj7 g:7 a:m7 b:m7.5-
>  \break d1:maj7 e:m7 fis:m7 g:maj7 a:7 b:m7 cis:m7.5-
> }
>
> upper = \relative c' {
>   \clef treble
>   \key c \major
>   \time 4/4
>   <c e g b>1 <d f a c>1 <e g b d>1 <f a c e>1 <g b d f>1 <a c e g>1 <b d f
> a>1
>  * %\override ???.keysignature.break-visibility = #end-of-line-invisible*
>   \break
>   \key d \major
>   <d, fis a cis>1 <e g b d>1 <fis a cis e>1 <g b d fis>1 <a cis e g>1 <b d
> fis a>1 <cis e g b>1
> }
> lower = \relative c,{
>   \clef bass
>   \key c \major
>   \time 4/4
>   <c e g b>1 <d f a c>1 <e g b d>1 <f a c e>1 <g b d f>1 <a c e g>1 <b d f
> a>1
>  * %once \override ???.keysignature.break-visibility =
> #end-of-line-invisible*
>   \break
>   \key d \major
>   <d, fis a cis>1 <e g b d>1 <fis a cis e>1 <g b d fis>1 <a cis e g>1 <b d
> fis a>1 <cis e g b>1
> }
> \score {
>   <<
>     \new PianoStaff <<
>
> *%\override PianoStaff.KeySignature.break-visibility=
> #end-of-line-invisible      \new ChordNames {*
>       \set chordChanges = ##t
>       \harmonies
>     }
>       \new Staff = "upper" \upper
>       *%\once \override Staff.KeySignature #'break-visibility = #'#(#f #t
> #t)*
>       \new Staff = "lower" \lower
>       *%\once \override Staff.KeySignature #'break-visibility = #'#(#f #t
> #t)*
>     >>
>   >>
>   \layout {
>     \context { \Staff \RemoveEmptyStaves }
>   }
>   \midi { }
> }
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=174876&i=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/Override-KeySignature-end-of-line-invisible-tp174876.html
>  To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> To unsubscribe from Lilypond, click here
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=>
> .
> NAML
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=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/Override-KeySignature-end-of-line-invisible-tp174876p174878.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

Reply via email to