Arranging separate lyrics on a single line: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Sometimes you may want to put lyrics for different performers on a single line: where there is rapidly alternating text, for example. This snippet shows how | Sometimes you may want to put lyrics for different performers on a single line: where there is rapidly alternating text, for example. This snippet shows how it can be done with adjusting the <code>nonstaff-nonstaff-spacing</code> property of the <code>VerticalAxisGroup</code> grob. | ||
< | |||
<lilypond version="2.24"> | |||
\layout { | \layout { | ||
\context { | \context { | ||
| Line 43: | Line 41: | ||
} | } | ||
>> | >> | ||
\new Lyrics \lyricsto "alice" { | \new Lyrics \lyricsto "alice" { | ||
may -- be | may -- be | ||
| Line 49: | Line 48: | ||
Shut up, you fool! | Shut up, you fool! | ||
} | } | ||
\new Lyrics \lyricsto "eve" { | \new Lyrics \lyricsto "eve" { | ||
that the | that the | ||
| Line 58: | Line 58: | ||
</lilypond> | </lilypond> | ||
[[Category:Paper and layout]] | |||
[[Category:Vocal music]] | [[Category:Vocal music]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category: | [[Category:Snippet]] | ||
Latest revision as of 05:08, 13 December 2025
Sometimes you may want to put lyrics for different performers on a single line: where there is rapidly alternating text, for example. This snippet shows how it can be done with adjusting the nonstaff-nonstaff-spacing property of the VerticalAxisGroup grob.
\version "2.24"
\layout {
\context {
\Lyrics
\override VerticalAxisGroup
.nonstaff-nonstaff-spacing
.minimum-distance = ##f
}
}
aliceSings = \markup { \smallCaps "Alice" }
eveSings = \markup { \smallCaps "Eve" }
<<
\new Staff <<
\new Voice = "alice" {
f'4^\aliceSings g' r2 |
s1 |
f'4^\aliceSings g' r2 |
s1 | \break
% ...
\voiceOne
s2 a'8^\aliceSings a' b'4 |
\oneVoice
g'1
}
\new Voice = "eve" {
s1 |
a'2^\eveSings g' |
s1 |
a'2^\eveSings g'
% ...
\voiceTwo
f'4^\eveSings a'8 g' f'4 e' |
\oneVoice
s1
}
>>
\new Lyrics \lyricsto "alice" {
may -- be
sec -- ond
% ...
Shut up, you fool!
}
\new Lyrics \lyricsto "eve" {
that the
words are
% ...
…and then I was like–
}
>>