Hi, I am typesetting a movement with a repeat and a clef change right after the repeat. I have a suitable line break where the repeat ends and the clef change happens. Default Lilypond sets the new clef within the repeat, before the end-repeat sign, which I don’t want and find meaningless in my case since there is no clef change when repeating from the beginning, only when continuing after the repeated section. Instead I want the clef after the end-repeat and before the line break. I can do that by setting the clef change off from the repeated section by a small space. Only the space comes out much larger than expected.
Tiny example:
\version "2.24.0"
\relative c' {
\repeat volta 2 {
g'4 4 4 4 | 4 4 4 4 | 4 4 4 4 | 4 4 4 8 8 |
}
s1024
\clef bass
\break
\set Timing.measurePosition = #(ly:make-moment 0/4)
c,,4 4 4 4 | 4 4 4 4 | 4 4 4 4 | 4 4 4 4 |
}
I enclose the output as png. My 1024th spacer rest is broader than the two preceding quavers (8th notes) combined.
* Curious question: why is that?
* Constructive question: how to avoid it?
* Real question: How do I set the clef nicely immediately
after the end-repeat with minimal space between?
Cheers, Ole
Sent with Proton Mail secure email.
Hi, Ole -
Boy, I thought that would be simple, but I can't figure it out. I thought I had examples, but maybe it's always been with alternatives. Anyone else?
All the best,
Ralph