Force clef change in alternatives: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
No edit summary |
||
| Line 24: | Line 24: | ||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Editorial annotations]] | [[Category:Editorial annotations]] | ||
[[Category:Workaround]] | [[Category:Workaround]][[Category:Snippet]] | ||
Revision as of 22:53, 21 November 2025
This snippet shows how to force the appearance of a callback clef during a repeat.
\version "2.24"
%% => http://lilypond-french-users.1298960.n2.nabble.com/Changement-de-cle-avant-reprise-td7590078.html
\relative c' {
\repeat volta 2 {
c4 d e f g1 \clef bass g,4 a b c
}
\alternative {
{ d1 \clef treble }
{
\grace s4
\once \override Staff.Clef.extra-spacing-width = #'(-1.5 . 0)
\clef bass
d4 c b a
}
}
g1
}