Jump to content

Forcing hyphens to be shown: Difference between revisions

From LilyPond wiki
No edit summary
m New category
Line 20: Line 20:


[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Vocal music]][[Category:Snippet]]
[[Category:Vocal music]]
[[Category:Snippet]]

Revision as of 23:22, 21 November 2025

If LilyPond does not think there is space for a hyphen, it will be omitted. The behaviour can be overridden with the minimum-distance property of LyricHyphen.

\version "2.24"

\relative c'' {
  c32 c c c 
  c32 c c c 
  c32 c c c 
  c32 c c c 
}
\addlyrics {
  syl -- lab word word
  \override LyricHyphen.minimum-distance = #1.0
  syl -- lab word word
  \override LyricHyphen.minimum-distance = #2.0
  syl -- lab word word
  \revert LyricHyphen.minimum-distance
  syl -- lab word word
}