Jump to content

Aligning syllables with melisma: 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:
By default, lyrics syllables that start a melisma are left aligned on their note. The alignment can be altered using the <code>lyricMelismaAlignment</code> property.
By default, lyrics syllables that start a melisma are left aligned on their note. The alignment can be altered using the <code>lyricMelismaAlignment</code> property.


<lilypond version="2.24.0">
<lilypond version="2.24">
\score {
\score {
   <<
   <<

Revision as of 18:45, 16 November 2025

By default, lyrics syllables that start a melisma are left aligned on their note. The alignment can be altered using the lyricMelismaAlignment property.

\version "2.24"

\score {
  <<
    \new Staff {
      \relative c'' 
      \new Voice = "vocal" {
        c d~^\markup default  d e
        c d~^\markup "right aligned" d e
        c d~^\markup "center aligned" d e
        c d~^\markup "reset to default" d e
      }
    }
    \new Lyrics \lyricsto "vocal" { 
      word word word 
      \set lyricMelismaAlignment = #RIGHT 
      word word word 
      \set lyricMelismaAlignment = #CENTER 
      word word word 
      \unset lyricMelismaAlignment
      word word word 
    }
  >>
}