lilypond-user
[Top][All Lists]
Advanced

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

Re: Polyphony lyrics


From: Mats Bengtsson
Subject: Re: Polyphony lyrics
Date: Mon, 12 Dec 2005 12:53:15 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

Probably since the Voice context "1" created for the c, dies directly
after that note, since there are no more events directly following the c.
Then when the g appears, a new Voice context with the same name is
created but since the earlier one with a same name has already been
removed, you actually get a completely new context.

The corresponding lyrics was attached to the first Voice context called "1"
and my guess is that this association isn't renewed.

The following modification of your example illustrates this phenomenon:
 \score {\new Staff <<
   \context Voice = "1" {s1*2}
   \context Voice = "foo" { a4 b << c \\ d >> e f << g \\ a >> b c }
   \new Lyrics \lyricsto "foo" { h i j k l m n o }
   \new Lyrics \lyricsto "1" { p q r }
   \new Lyrics \lyricsto "2" { s t u }
 >>}

The additional  \context Voice = "1" {s1*2} just makes sure that the
context is kept alive long enough.

A better solution is perhaps to explicitly instantiate and name the
context for the second voice:
 \score {\new Staff <<
   \context Voice = "fie" {s1*2}
   \context Voice = "foo" { a4 b
     << {\voiceOne c} \context Voice = "fie" {\voiceTwo d } >>
     \oneVoice e f
     << {\voiceOne g} \context Voice = "fie" {\voiceTwo a } >>
     \oneVoice b c }
   \new Lyrics \lyricsto "foo" { h i j k l m n o }
   \new Lyrics \lyricsto "fie" { s t u }
 >>}

I guess the missing piece to the puzzle, compared to the insights you
just summarized in the "An overview of the system" mails, is that a
context "dies", i.e. is removed as soon as there are no more events
in it.

  /Mats

Don Blaheta wrote:

If I compile the following in 2.6.4, I get---as expected---one column
under the third note with "p" and "s".  However, I *don't* get
*anything* under the sixth note (where I would expect "q" and "t").
Why?

 \score {<<
   \context Voice = "foo" { a b << c \\ d >> e f << g \\ a >> b c }
   \new Lyrics \lyricsto "foo" { h i j k l m n o }
   \new Lyrics \lyricsto "1" { p q r }
   \new Lyrics \lyricsto "2" { s t u }
 >>}


--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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