Jump to content

Keep change clefs full-sized: Difference between revisions

From LilyPond wiki
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
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
When a clef is changed, the clef sign displayed is smaller than the initial clef. This can be overridden with <code>full-size-change</code>.
When a clef changes, the clef sign displayed is smaller than the initial clef. This can be overridden by setting the context property <code>full-size-change</code> to <code>#t</code>.


<lilypond version="2.24">
<lilypond version="2.24">
Line 25: Line 25:
[[Category:Pitches]]
[[Category:Pitches]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 22:04, 7 December 2025

When a clef changes, the clef sign displayed is smaller than the initial clef. This can be overridden by setting the context property full-size-change to #t.

\version "2.24"

\relative c' {
  \clef "treble"
  c1
  \clef "bass"
  c1
  \clef "treble"
  c1
  \override Staff.Clef.full-size-change = ##t
  \clef "bass"
  c1
  \clef "treble"
  c1
  \revert Staff.Clef.full-size-change
  \clef "bass"
  c1
  \clef "treble"
  c1
}