Placing lyrics above the staff in LilyPond
In the following MWE, I somehow can't find a way to place the lyrics above the staff:
version "2.19.84"
soprano = {
c''4 d'' e''
}
alto = {
g' a' b'
}
tenor = {
c' d' e'
}
words = lyricmode {
Text goes above!
}
new Staff <<
new Voice = "sopranoVoice" { voiceOne soprano }
new Lyrics with { alignAboveContext = "sopranoVoice" } lyricsto "sopranoVoice" words
new Voice { voiceTwo tenor }
new Voice { voiceThree alto }
>>
I've tried following the relevant portion of the LilyPond documentation, but to no avail. Placing the alignAboveContext line above the soprano results in an error. Perhaps the problem is multiple voices in a single staff?
1 Comments
Sorted by latest first Latest Oldest Best
Seems to work when using alignAboveContext with the staff:
version "2.19.84"
soprano = {
c''4 d'' e''
}
alto = {
g' a' b'
}
tenor = {
c' d' e'
}
words = lyricmode {
Text goes above!
}
new Staff = "staff" <<
new Voice = "sopranoVoice" { voiceOne soprano }
new Lyrics with { alignAboveContext = "staff" } lyricsto "sopranoVoice" words
new Voice { voiceTwo tenor }
new Voice { voiceThree alto }
>>
Terms of Use Privacy policy Contact About Cancellation policy © freshhoot.com2026 All Rights reserved.