How surprising! I tried using Devnull for a piece, but the lyrics did not synchronize with the music. So I discovered that it ignores ties and slurs. This makes this finesse useless for lyrics, which is a pity. Could be useful. Well, yes, I know it is intended for cadenzas parties in the music, but it could be useful also for the lyrics.

/Kaj

Here is an example:

\version "2.22.0"

preMusic = \relative { a2 a }
voltaMusic = \relative { b'4 b~ b b }
finalMusic = \relative { c''4 c( c) c }

preTxt = \lyricmode { Pre text }
voltaOne = \lyricmode { The first time }
voltaTwo = \lyricmode { And next time }
finalPart = \lyricmode { Here's the end }

\score {
  <<
    \new Staff <<
      \new Voice { \preMusic \repeat volta 2 { \voltaMusic } \finalMusic }
      \new Devnull = "VerseOne" { \preMusic \voltaMusic }
      \new Devnull = "VerseTwo" { #(skip-of-length preMusic) \voltaMusic \finalMusic }
    >>

    \new Lyrics \lyricsto "VerseOne" { \preTxt \voltaOne \skip 1 \finalPart }
    \new Lyrics \lyricsto "VerseTwo" { \voltaTwo \skip 1 \finalPart }
    %% %% ==== The \skip 1 should not be necessary if Devnull had worked correct ====
  >>

  \layout {}
  \midi {}
}

Attachment: Devnull.pdf
Description: Adobe PDF document

Reply via email to