lilypond-user
[Top][All Lists]
Advanced

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

Re: How to recognize Voice-continuation?


From: Patrick Karl
Subject: Re: How to recognize Voice-continuation?
Date: Fri, 27 Mar 2015 10:22:04 -0500

Message: 1
Date: Fri, 27 Mar 2015 02:26:32 +0100
From: Thomas Morley <address@hidden>
Subject: How to recognize Voice-continuation?

consider the (artificial) code below.
In my naivity I expected that voice-b would be recognized as it works
for voice-a
I.e. the three triggering features (tieWaitForNote, NoteHead.colors
and assigned Lyrics) would work for the second appearance of voice-b.
Any chance to have LilyPond identify the second voice-b as a
continuation of the first?

\version "2.19.17"

lyrI =
\lyricmode { one two three }

lyrII =
\lyricmode { a b c d  e f g h  i j k l  m n o p }

<<
\new Staff
 \relative c' {
   \new Voice = "a"
   \with { \override NoteHead #'color = #green }
   { \set tieWaitForNote = ##t c1~ }

   \new Voice = "b"
   \with { \override NoteHead #'color = #red }
   { \set tieWaitForNote = ##t cis4 d dis e~ }

   \context Voice = "a"
   { d2 c2 }

   \context Voice = "b"
   { f4 e fis g }

   \context Voice = "a"
   { e1 }
 }
\new Lyrics \lyricsto "a" \lyrI
\new Lyrics \lyricsto "b" \lyrII
>>

I'm sure you have a good reason to write it that way, but why not do:

\version "2.19.17"

lyrI =
\lyricmode { one two }

lyrII =
\lyricmode { a b c d  e f  }

<<
\new Staff
 \relative c' {
     <<
   \new Voice = "a"
   \with { \override NoteHead #'color = #green }
   { \set tieWaitForNote = ##t c1~ s1 d2 c s1 e }

   \new Voice = "b"
   \with { \override NoteHead #'color = #red }
   { \set tieWaitForNote = ##t s1 cis4 d dis \tieUp e~  s1 f4 e fis g }
     >>
 }
\new Lyrics \lyricsto "a" \lyrI
\new Lyrics \lyricsto "b" \lyrII
>>

which gives:


But that result does seem to raise another question.  Are the lyrics assigned correctly to the notes?  Shouldn't the first note in measure 4 get the "e"?  BTW, Keith's solution results in the same lyrics assignment as the one above.


reply via email to

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