lilypond-user
[Top][All Lists]
Advanced

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

Re: Lining up key signatures


From: Kieren MacMillan
Subject: Re: Lining up key signatures
Date: Tue, 28 Apr 2015 20:33:40 -0400

Hi James,

> >I don't see a way to make the key-cancellation and key-signature 
> >simultaneous.

The following (hacky!) code seems to work for me:

\version "2.19.18"

musicA = {
  \key c \major
  \repeat unfold 2 { c'4 c' c' c' }
  \key des \major
  des'1
}

musicB = {
  \key fis \major
  \repeat unfold 2 { dis'4 dis' dis' dis' }
  \override Score.KeyCancellation.X-extent = #'(-0.125 . 0) \key c \major
  e'1
}

\score {
  \new StaffGroup <<
    \new Staff { \musicA }
    \new Staff { \musicB }
  >>
}

Hope that helps!
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

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