Hello all,
The following code creates the image attached. The problem is that I can't figure out how to vertically align the "cancellation" in the lower staff with the new key signature in the upper staff. I've tried the snippet at
http://lsr.di.unimi.it/LSR/Snippet?id=541 (included in the code) but that lists the elements in horizontal order in which they appear, and I don't see a way to make the key-cancellation and key-signature simultaneous.
\version "2.19.18"
musicA = {
\key c \major
\repeat unfold 2 { c'4 c' c' c' }
\key des \major
des'1
}
musicB = {
\override Score.BreakAlignment.break-align-orders =
##((left-edge ambitus breathing-sign clef staff-bar
key-cancellation key-signature time-signature custos)
(left-edge ambitus breathing-sign clef key-cancellation
staff-bar key-signature time-signature custos)
(left-edge ambitus breathing-sign clef key-cancellation
key-signature staff-bar time-signature custos))
\key fis \major
\repeat unfold 2 { dis'4 dis' dis' dis' }
\key c \major
e'1
}
\score {
\new StaffGroup <<
\new Staff { \musicA }
\new Staff { \musicB }
>>
}