lilypond-user
[Top][All Lists]
Advanced

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

Re: Expert question on named contexts


From: Neil Puttock
Subject: Re: Expert question on named contexts
Date: Tue, 12 Aug 2008 22:52:58 +0100

2008/8/10 Trevor Daniels <address@hidden>:

> There may be better ways, but this works, and is adequate
> for experimentation:

Thanks for this, Trevor; it's easier to see what's going on than using
\displayMusic.

I noticed something strange going on when using \addlyrics; perhaps it
should be documented as a `known issue'. Consider the following
snippet:

verseOne = \lyricmode { Joy to the world the Lord is come }
\score {
  <<
    \new Voice = "one" \relative c'' {
      \autoBeamOff
      \time 2/4
      c4 b8. a16 g4. f8 e4 d c2
    }
    \addlyrics { \verseOne }
    \new Lyrics \lyricsto "one" \verseOne
  >>
}

You'd guess that this would produce a stave with two sets of lyrics,
but what actually happens is that \addlyrics renames the voice context
to `uniqueContext0', which means the \new Lyrics block can't find
anything to attach itself to. I presume this is a known bug, since the
helper function used by \addlyrics to retrieve the context id has a
TODO saying `It seems that this function rarely returns anything
useful.' :)

Regards,
Neil




reply via email to

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