bell notificationshomepageloginNewPostedit profiledmBox

Hoots : 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 = { - freshhoot.com

10% popularity   0 Reactions

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?


Load Full (1)

Login to follow hoots

1 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

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 }
>>


Back to top Use Dark theme