On Fri, Jul 4, 2025 at 2:55 PM Brent Annable <[email protected]> wrote:
> Hi all,
>
> Rather than having a key-signature change appear at the start of the bar
> where it takes effect, I'm trying to move it to the end of the previous bar
> (see example). The problem is that Lilypond still reserves space for the
> key signature in all other staves at the start of the bar where it usually
> is. Is there any way to change that behaviour, so that there's no extra
> space?
>
I just had a similar problem answered here. Use the break-align-orders
property to get the key signature on the right side of the bar, then use
X-offset to scoot it a little more to the right.
%%%
\version "2.24.4"
\score {
\new StaffGroup <<
\new Staff {
\relative c'' {
\hide Staff.BarLine
\key bes \major
c4 c c c | c c c c
}
}
\new Staff {
\relative c'' {
\hide Staff.BarLine
\key bes \major
c1
\once \override Score.BreakAlignment.break-align-orders =
#(make-vector 3 '(staff-bar clef))
\once \override Score.KeySignature.X-offset = 1
\key es \major
c4 c c c
}
}
>>
}
%%%
--
Knute Snortum