5

I am working on a template for SATB Vocal hymn. To show the lyrics underneath the Soprano line, I use the following.

      \new Lyrics \lyricsto "Soprano" {
        \set stanza = "1." \small \verseOne
      }
      \new Lyrics \lyricsto "Soprano" {
        \set stanza = "2." \small \verseTwo
      }
      \new Lyrics \lyricsto "Soprano" {
        \set stanza = "3." \small \verseThree
      }
      \new Lyrics \lyricsto "Soprano" {
        \set stanza = "4." \small \verseFour
      }
      \new Lyrics \lyricsto "Soprano" {
        \set stanza = "5." \small \verseFive
      }

It works well inside a \score. I can see 5 stanzas in this hymn.

My question is, is it possible to combine all these 15 lines for showing lyrics into a single variable? Say \allVerses which replaces these 15 lines?

I tried ...

allVerses = {
    \new Lyrics \lyricsto "Soprano" {
      \set stanza = "1." \small \verseOne
    }
    \new Lyrics \lyricsto "Soprano" {
      \set stanza = "2." \small \verseTwo
    }
    \new Lyrics \lyricsto "Soprano" {
      \set stanza = "3." \small \verseThree
    }
    \new Lyrics \lyricsto "Soprano" {
      \set stanza = "4." \small \verseFour
    }
    \new Lyrics \lyricsto "Soprano" {
      \set stanza = "5." \small \verseFive
    }
  }

... but this method only display the first stanza in the SATB song.

So, is there a way for showing all lyrics using a single variable?

Thank you!!

3
  • 1
    Are these verses supposed to appear directly under one-another (as the music repeats)? Commented Feb 19 at 8:02
  • Correct. And I wish I knew how to attach a screenshot here...
    – ikel
    Commented Feb 19 at 8:10
  • 1
    You should be able to attach a screenshot with the image icon in the editor. Commented Feb 19 at 8:19

1 Answer 1

7

You’re almost there, all you have to do is to wrap the various \new Lyrics blocks in double chevrons << & >>. This will make each of these occur simultaneously rather than sequentially.

allVerses = {
    <<
        \new Lyrics \lyricsto "Soprano" {
            \set stanza = "1." \small \verseOne
        }
        \new Lyrics \lyricsto "Soprano" {
            \set stanza = "2." \small \verseTwo
        }
        \new Lyrics \lyricsto "Soprano" {
            \set stanza = "3." \small \verseThree
        }
        \new Lyrics \lyricsto "Soprano" {
            \set stanza = "4." \small \verseFour
        }
        \new Lyrics \lyricsto "Soprano" {
            \set stanza = "5." \small \verseFive
        }
    >>
}
3
  • Thanks for pointing out the chevrons. The stanzas print out beautifully.
    – ikel
    Commented Feb 19 at 8:33
  • 3
    Remark: The sequential music { ... } around << ... >> is not necessary.
    – Lazy
    Commented Feb 19 at 9:50
  • @Lazy. Thanks and noted. That's a habit from C++.
    – ikel
    Commented Feb 19 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.