lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Devnull ignores tie and slur


From: Kaj Persson
Subject: Devnull ignores tie and slur
Date: Sat, 22 May 2021 14:25:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0

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

[Prev in Thread] Current Thread [Next in Thread]