Hi, Jogchum,

Please use Reply All to keep the messages on the user list.

On Sun, Mar 27, 2022 at 1:00 PM Jogchum Reitsma <j.reit...@hccnet.nl> wrote:

> Op 27-03-2022 om 20:14 schreef Carl Sorensen:
>
>
>
> On Sun, Mar 27, 2022 at 10:31 AM Jogchum Reitsma <j.reit...@hccnet.nl>
> wrote:
>
>> Hi,
>>
>> Brahms' Waldesnacht has an intro stanza number one, and after that a
>> twice repeated melody, with stanza's 2 and three.
>>
>>
>>
>> How can I achieves those stanza's to begin at the repeat?
>>
>
> Jogchum,
>
> It would normally be better to reduce your music to a one measure stanza
> and a one measure repeat before posting to the list.  That makes it easier
> for both you and the list members to see what is happening.
>
> Yes, you're right. I already removed al the other voices for this example,
> to keep only soprano, but I see that's still a lot of text...
>
>
> I've changed your code to show how I would do it.
>
> 1) Put stanza 1 music in a separate music variable.
> 2) Put repeat music in a separate music variable.
> 3) Make the soprano part by combining stanza 1 and  the repeat music.
> 4) Put one Voice and one NullVoice in your staff.
>     a) The Voice has your soprano notes
>     b) The NullVoice has a skip for the stanza 1 and notes from the repeat
> music.
> 5) Add two Lyrics contexts in parallel with the Staff (as part of the
> ChoirStaff)
>   a) The first Lyrics has the text for Verse 1 followed by the text for
> verse2.  It is put to the soprano voice
>   b) The second Lyrics has the text for Verse 3.  It is put to the
> nullvoice, so no lyrics go with the skip.
>
> And it all works out.
>
>
> Hope this is helpful.
>
> This is very helpful, , and it must have cost you some time to work it
> out. Many thanks!
>

Not too much time; you already had things set up very well to allow the
changes to be made easily.  It's just easier to see the structure if you
have fewer notes and lyrics...

> So I understand the \set associatedVoice isn't usable for this construct.
>
I'm not sure exactly why the \new Voice = "sopra_repeat" doesn't cause the
lyrics to start at the beginning of the repeat.   I'd guess it has to do
with having the \new Voice inside an automatically generated Voice context
(when you put \soprano inside  the Staff, a Voice is created.  And then you
create a new Voice inside that automatically-created Voice, so I assume
things get confused.

I ran a little test to see the differences between using \set
associatedVoice and \lyricsto.  I can make them both work.  See the
attached code.  But not that in both cases, I separate the notes from the
contexts, and I explicitly create my contexts, which I think is good
practice.

HTH,

Carl;
version "2.22.1"

musI = \relative {c'4 d e f}
musII = \relative {g'4 a b c}

lyrI = \lyricmode {\set stanza = "1. " One one one one}
lyrII = \lyricmode {\set stanza = "2. " Two two two two}
lyrIII = \lyricmode {\set stanza = "3. " Three three three three}

\score{
  <<
    \new Staff {
      \new Voice = "m1" \musI
      \new Voice = "m2" \musII
     }
   \new Lyrics="lyrOne" {
     \set associatedVoice = "m1"
     {  \lyrI
        \lyrII }
   }
   \new Lyrics ="lyrThree" {
     \lyricsto "m2" { \lyrIII}
   }
  >> % end of music
  \layout{}

} % end of score

\score{
  <<
    \new Staff <<
      \new Voice = "m1" {\musI \musII}
      \new NullVoice = "m2"  {
        #(skip-of-length musI)
        \musII
      }
      >>


   \new Lyrics="lyrOne" \lyricsto "m1" {
     { \lyrI
        \lyrII }
   }
   \new Lyrics ="lyrThree" {
     \lyricsto "m2" {\set stanza = "3. " \lyrIII}
   }
  >> % end of music
  \layout{}

} % end of score

Reply via email to