Jump to content

Lyric combine: 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:
With the <code>\lyricsto</code> mechanism, individual lyric lines can be associated with one melody line. For each lyric line, they can be tuned whether to follow melismata or not.
With the <code>\lyricsto</code> mechanism, individual lyric lines can be associated with one melody line. For each lyric line, they can be tuned whether to follow melismata or not.


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



Revision as of 18:53, 16 November 2025

With the \lyricsto mechanism, individual lyric lines can be associated with one melody line. For each lyric line, they can be tuned whether to follow melismata or not.

\version "2.24"

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

<<
  \new Voice = "bla" \relative c'' {
    \autoBeamOff
    c2( d4) e8[ c b c] f4
  }
  \new Lyrics \lyricsto "bla"  { 
    bla ab blob blob 
  }
  \new Lyrics \lyricsto "bla"  {
    bla 

    \set ignoreMelismata = ##t
    
    blob

    %% note: effect of ignoreMelismata delayed one time step.
    \unset ignoreMelismata 
    blob
    
    blob
  }
  
  \new Lyrics \lyricsto "bla"  {
    nes ted lyrics voice with more words than no tes
  }
>>