lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Override KeySignature end-of-line-invisible


From: tisimst
Subject: Re: Override KeySignature end-of-line-invisible
Date: Mon, 20 Apr 2015 13:33:56 -0700 (MST)

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] <[hidden email]> 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]
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 [hidden email]
To unsubscribe from Lilypond, click here.
NAML



View this message in context: Re: Override KeySignature end-of-line-invisible
Sent from the User mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]