Hi list,how should I treat a key change in the first alternative of a volta repeat? I’m not sure whether to print the “change back” at the beginning of the second alternative (m. 5 of the attached code).
I don’t think it’s necessary to print it if the change coincides with a line break (LilyPond’s default behaviour, variant 1 in the attached code). But is it necessary when there is no line break (variant 2 or 3)?
And another thing: I added keyAlterations to the alternativeRestores context property; shouldn’t this be the default?
Malte
\version "2.19.37" \language "deutsch" \relative { \set Score.alternativeRestores = #'(measurePosition measureLength lastChord keyAlterations) \key d \minor \repeat volta 2 { d' e f g \key a \major a h cis d } \alternative { { e d cis h \key d \minor a g f e } { %\break %%% VARIANT 1 % do nothing, LilyPondâs default behaviour %%% VARIANT 2 %\once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible %\once \override Staff.KeyCancellation.break-visibility = #center-visible %%% VARIANT 3 %\once \set Staff.explicitKeySignatureVisibility = #begin-of-line-visible %\once \override Staff.KeyCancellation.break-visibility = #all-invisible e' fis gis e } } a1 }
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user