bug-lilypond
[Top][All Lists]
Advanced

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

Re: Obscure melisma fail


From: David Kastrup
Subject: Re: Obscure melisma fail
Date: Wed, 09 Sep 2015 18:44:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

tisimst <address@hidden> writes:

> I'd like to add to this bug report (single voice using a variable):

The variable has nothing to do with it.

> %%%%%%%%%%%%%%
>
> altoOneVoice = \relative {
>    d'2\melisma e4\melismaEnd cis
> }
>
> altText = \lyricmode {
>     side, sit
> }
>
> \markup \column { "One voice in a music variable" "(center-aligned 
> melisma)" }
> \score {
>     <<
>       \new Staff \altoOneVoice
>       \addlyrics \altText
>     >>
> }
>
> % same music as above, but explicitly written out in the \score block
> \markup \column { "One voice explicitly written out in \score block" 
> "(left-aligned melisma)" }
> \score {
>     <<
>       \new Staff \relative {
>         d'2\melisma e4\melismaEnd cis
>       }
>       \addlyrics \altText
>     >>
> }

Here is the difference: The first variant adds the lyrics to \new Staff
\altoOneVoice.  The second variant adds the lyrics to { d'2 ... } even
_before_ \relative is called.  \addlyrics is sort of sticky.  Once the
\addlyrics is sucked _into_ the \relative, it does not have a chance to
combine with \new Staff in a useful manner.  So basically you get

\score {
  <<
     \new Staff \relative << \new Voice="xxx" { d'2 ... cis}
                             \new Lyrics \lyricsto "xxx" ... >>
  >>
}

Or something like that.  Lesson: \addlyrics is for simple cases.

-- 
David Kastrup



reply via email to

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