Jump to content

Preventing stem extension: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
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


Line 26: Line 26:
[[Category:Specific notation]]
[[Category:Specific notation]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:22, 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
      }
    >>
  }
}