[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Clef change after end-repeat before break -- how?
From: |
Ole V. Villumsen |
Subject: |
Clef change after end-repeat before break -- how? |
Date: |
Fri, 27 Jan 2023 21:35:03 +0000 |
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.
repeat-and-clef.png
Description: PNG image
- Clef change after end-repeat before break -- how?,
Ole V. Villumsen <=