lilypond-user
[Top][All Lists]
Advanced

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

Suppress end-of-line key signature change


From: Mark Probert
Subject: Suppress end-of-line key signature change
Date: Fri, 9 Sep 2022 11:35:17 +1000


Hi.

By default LP will add the new key signature to the end of a line if the next line has a key signature change (as per this example). Is there an easy way to suppress this behaviour? For pedagogic exercises like these scales it is not really needed

TIA!

---[ ex ]---
\version "2.22"

melody = \relative c'' {
  \clef treble
  \time 4/4
  \set Staff.printKeyCancellation = ##f

  \key c   \major c8 d e f g a b c     | \bar "||"
  \key f   \major f,8 e d c bes a g f  | \bar "||"
  \break
  \key bes \major bes8 c d ees f g a bes | \bar "||"
  \key ees \major ees,8 d c bes aes g f ees | \bar "||"
}

\score {
  <<
    \melody
  >>
}
---[ end ex ]---

--
-mark.

reply via email to

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