Jump to content

Preventing stem extension: Difference between revisions

From LilyPond wiki
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:
Extending stems to the center line may be prevented using <code>no-stem-extend</code>.
Extending stems to the center line may be prevented using <code>no-stem-extend</code>.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=141
%% http://lsr.di.unimi.it/LSR/Item?id=141



Revision as of 18:51, 16 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
      }
    >>
  }
}