Jump to content

Preventing stem extension: 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
No edit summary
Line 25: Line 25:
[[Category:Editorial annotations]]
[[Category:Editorial annotations]]
[[Category:Specific notation]]
[[Category:Specific notation]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]][[Category:Snippet]]

Revision as of 22:58, 21 November 2025

Extending stems to the center line may be prevented using no-stem-extend.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=141

\score { 
  \context Voice \relative c {
    \context Staff <<
      \new Voice { 
        f2 f8 g a b 
        \override Stem.no-stem-extend = ##t
        f2 f8 g a b
      }
      \new Voice { 
        c''2 c8 b a g
        \override Stem.no-stem-extend = ##t
        c2 c8 b a g
      }
    >>
  }
}