|
From: | Evan Driscoll |
Subject: | Re: Spacing of clef change |
Date: | Thu, 27 Jun 2019 01:43:10 -0500 |
On 2019-06-26 9:27 pm, Evan Driscoll wrote:
> I've got the example document below. There's a bit too little space for
> me
> between the last note in the last measure of the first line and the new
> clef.
>
> I found a mailing list entry that showed how to put some extra space
> before
> the clef (the commented-out override) and that looks great -- except
> that
> it also moves the clef at the start of the next system. I tried a
> \tweak
> version, but my attempt has no effect at all.
Here's one way to do it:
%%%%
\version "2.19.82"
\relative c {
\clef "bass"
\repeat unfold 10 {
g2. g4 |
}
\break
\once \override Staff.Clef.before-line-breaking = #(lambda (grob)
(and (eq? LEFT (ly:item-break-dir grob))
(set! (ly:grob-property grob 'X-extent) '(-2 . 2))))
\clef "tenor"
\repeat unfold 7 {
g8 g g2.
}
}
%%%%
-- Aaron Hill
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |