\lyrics is (more or less exactly) a short form for
\new Lyrics \lyricmode
(There are similar commands \chords, \figures, \drums and \notes that
all are more or less undocumented, see
http://lists.gnu.org/archive/html/lilypond-devel/2006-04/msg00332.html)
The following example illustrates more clearly that you indeed get
another Lyrics context than you manually specified, if you use \lyrics.
<<
\new Lyrics = first { s1 }
\new Lyrics = second { s1 }
\new Voice = v { c2 d4 e8 f | g1 }
\context Lyrics = first \lyricsto v { c d e f g }
\context Lyrics = second \lyricsto v \lyrics { c d e f g }
>>
It's a bit funny that the \lyricsto command still manages to set the
durations correctly for the syllables, but fails to set the associated
voice. Probably this setting is done in the context you create with
\new Lyrics, not the one created by \lyrics, since the following
modification of your example gives the desired centered alignment:
\version "2.11.53"
words = \lyrics{ \set associatedVoice = "alt" ly rics }
wordstwo = \lyricmode{ ly ricmode }
<<
\new Voice = "sop" { c'1 }
\new Lyrics \lyricsto "sop" { \words }
\new Voice = "alt" { c'2 c' }
\new Lyrics \lyricsto "alt" { \words }
\new Voice = "soptwo" { c'1 }
\new Lyrics \lyricsto "soptwo" { \wordstwo }
\new Voice = "alttwo" { c'2 c' }
\new Lyrics \lyricsto "alttwo" { \wordstwo }
>>
/Mats
[EMAIL PROTECTED] wrote:
Issue 329: lyrics messed up when assigned to voices with different
rhythms
http://code.google.com/p/lilypond/issues/detail?id=329
Comment #4 by paconet.org:
This now behaves differently. Here is the same example, and another
added examples
that use lyricmode. With \lyrics the syllables appear left-aligned on
their notes,
with \lyricmode the syllables appear centered.
\version "2.11.53"
words = \lyrics{ ly rics }
wordstwo = \lyricmode{ ly ricmode }
<<
\new Voice = "sop" { c'1 }
\new Lyrics \lyricsto "sop" { \words }
\new Voice = "alt" { c'2 c' }
\new Lyrics \lyricsto "alt" { \words }
\new Voice = "soptwo" { c'1 }
\new Lyrics \lyricsto "soptwo" { \wordstwo }
\new Voice = "alttwo" { c'2 c' }
\new Lyrics \lyricsto "alttwo" { \wordstwo }
My questions are,
what is \lyrics used for?
does it create a new context, or not?
is \lyrics deprecated?
is the comment #2 still valid, ie does "the original "\new Lyrics"
remains empty"?
anyway, the issue is either fixed or easily workaroundable.
Attachments:
notabug.preview.png 5.9 KB
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond