lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Clef change after end-repeat before break -- how?


From: Mark Stephen Mrotek
Subject: RE: Clef change after end-repeat before break -- how?
Date: Fri, 27 Jan 2023 15:29:06 -0800

Ole,

Under 2.22 I do not get extra space.

Mark

-----Original Message-----
From: lilypond-user-bounces+carsonmark=ca.rr.com@gnu.org 
[mailto:lilypond-user-bounces+carsonmark=ca.rr.com@gnu.org] On Behalf Of Ole V. 
Villumsen
Sent: Friday, January 27, 2023 1:35 PM
To: lilypond-user@gnu.org
Subject: Clef change after end-repeat before break -- how?

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.

Attachment: repeat-clef.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]