Forcing a clef symbol to be displayed: Difference between revisions

Import snippet from LSR
 
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
Line 1: Line 1:
When a clef sign has already been displayed and it has not been changed to a different clef, then repeating the <code>\clef</code> command will be ignored by LilyPond, since it is not a change of clef. It is possible to force the clef to be redisplayed using the command <code>\set Staff.forceClef = ##t</code>.
When a clef sign has already been displayed and it has not been changed to a different clef, then repeating the <code>\clef</code> command will be ignored by LilyPond, since it is not a change of clef. It is possible to force the clef to be redisplayed using the command <code>\set Staff.forceClef = ##t</code>.


<lilypond version="2.24.0">
<lilypond version="2.24">
\relative c' {
\relative c' {
   \clef treble  
   \clef treble