bug-lilypond
[Top][All Lists]
Advanced

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

Re: wrong alignment when repeating music with different text on one line


From: -Eluze
Subject: Re: wrong alignment when repeating music with different text on one line
Date: Mon, 17 Oct 2011 06:16:09 -0700 (PDT)


paconet.org wrote:
> 
> 2011/10/16 -Eluze <address@hidden>:
>>
>>
>> Phil Holmes-2 wrote:
>>>
>>> This looks to me like correct behaviour.  You've created extra Lyrics
>>> contexts, and Lilypond stacks them one above the other.  This is as
>>> illustrated in the NR.  If I was doing what you're showing, I would use
>>> \skip:
>>>
>>> <<
>>>   \new Staff {
>>>     \new Voice = "singleVoice" {
>>>       \relative c'' {
>>>         a1
>>>         \repeat volta 2 { b }
>>>         a1
>>>         \repeat volta 2 { b }
>>>   } } }
>>>   \new Lyrics \lyricsto "singleVoice" {
>>>       one
>>>       <<
>>>         { one one one }
>>>         \new Lyrics { \set associatedVoice = "singleVoice" two \skip 1
>>> two
>>> }
>>>       >>
>>>   }
>>>>>
>>>
>> thanks for your answer
>>
>> i agree that i create extra Lyrics contexts (this was just a copy of the
>> code found in NR), but when i declare them distinctly i run into the same
>> problem:
>>
>> the lyrics context "2" is now created once as new and later on referenced
>> as
>> \context …
>>
>> \new Staff <<
>>  \new Voice = "melody" {
>>    \relative c'' {
>>      a1 \repeat volta 2 {a}
>>      b  \repeat volta 2 {b}
>>  } }
>>  \new Lyrics ="1" \with{ associatedVoice = "melody" } \lyricmode
>>  { one
>>    <<
>>      \context Lyrics = "1" { one }
>>      \new Lyrics = "2" \with{ associatedVoice = "melody" } { two }
>>    >>
>>    one
>>    <<
>>      \context Lyrics = "1" { one }
>>      \context Lyrics = "2" \with{ associatedVoice = "melody" } { two }
>>    >>
>>  }
>>>>
>>
>> imo all the contexts are declared clearly.
>>
>> your solution certainly works but i'm not eager to count the measures
>> between these events… i could as well use a fully written second lyrics
>> voice - and not use the possibility of writing repeated parts as
>> presented
>> in the NR.
> 
> The issue arose a while ago,
> https://lists.gnu.org/archive/html/lilypond-devel/2009-08/msg00428.html
> 
> I'd also like to assign lyrics to voices freely and I expect them to
> be aligned in a simple way.  Too much cleverness on how to place them
> looks misleading to my mind.
> 
> However, if you insert a break in main Voice such as in
> 
> 
> music = \relative f' {
>       \new Voice ="main" { c1 c c \break }
>       \new Voice = "fork" { d1 d d d }
> }
> 
> mainlyrics = \lyricmode { main main main }
> forklyricsOne = \lyricmode { forkOne forkOne forkOne forkOne  }
> forklyricsTwo = \lyricmode { forkTwo forkTwo forkTwo forkTwo  }       
> 
> \score {
>       <<
>               \new Staff { \music }
>               \new Lyrics \lyricsto "main" { \mainlyrics }
>               \new Lyrics \lyricsto "fork" { \forklyricsOne }
>               \new Lyrics \lyricsto "fork" { \forklyricsTwo }
>       >>
> }
> 
> %%%%%END
> 
> then both forks align well.
> 
yes - but the problem is when they are on the same line!

here is a solution to the problem you mention above. it obviously prevents
the lyrics contexts to die:

\score {
  <<
    \new Staff \music
    \new Lyrics = "line1" 
    \new Lyrics = "line2"
    \context Lyrics = "line2" \lyricsto "fork" \forklyricsTwo
    \context Lyrics = "line1" \lyricsto "main" \mainlyrics
    \context Lyrics = "line1" \lyricsto "fork" \forklyricsOne
  >>
}

now i wonder if there is a way Lilypond could define the 2 \new Lyrics lines
automatically!

-- 
View this message in context: 
http://old.nabble.com/wrong-alignment-when-repeating-music-with-different-text-on-one-line-tp32622828p32667043.html
Sent from the Gnu - Lilypond - Bugs mailing list archive at Nabble.com.




reply via email to

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