Re: partial multi-line lyrics above staff

Peter Chubb <[email protected]> Mon, 22 Jun 2026 15:59:42 +1000
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <[email protected]>
>>>>> "Walt" == Walt North <[email protected]> writes:

Walt> O have a case where I want to
Walt> print lyrics that have some parts on separate lines. But want
Walt> all the lyrics above the bass staff line.  This is for the bass
Walt> player to follow - no other staffs needed. The following sample
Walt> is based on lilypond documentation but I'm not quite getting
Walt> there because the bass line is coming between lyric lines
Walt> instead after all the lyrics.


Try this --- you can tweak placement by naming the contexts

\score {
  <<
    \new Staff = "bass"{
      \new Voice {
	\relative {
	  \clef bass
	  a,4 a a a
	  \repeat volta 3 { b4 b b b }
	  c4 c c c
	}
      }
    }
    \new Lyrics = words \with {alignAboveContext = "bass"} \lyricmode {
      Not re -- peat -- ed.
      <<
	\new  Lyrics \with {alignAboveContext = "words"} {
	  The first time words.
	}
	\context Lyrics = words \lyricmode {
	  Sec -- ond time words.
	}
	\new Lyrics \with {alignBelowContext = "words"} \lyricmode {
	  The third time words.
	}
      >>
      The end sec -- tion.
    }
  >>
}