Adjusting vertical spacing of lyrics: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
music = \relative c' { c4 d e f | g4 f e d | c1 } | |||
text = \lyricmode { aa aa aa aa aa aa aa aa aa } | |||
<< | << | ||
\new Staff \new Voice = melody \ | \new Staff \new Voice = melody \music | ||
% Default layout: | |||
\new Lyrics \lyricsto melody \text | |||
\new Lyrics \lyricsto melody | |||
\new Staff | \new Staff \new Voice = melody \music | ||
% Reducing the minimum space below the staff and above the lyrics. | |||
% Reducing the minimum space below the staff and above the lyrics | |||
\new Lyrics \with { | \new Lyrics \with { | ||
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing = | \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = | ||
#'((basic-distance . 1)) | #'((basic-distance . 1)) | ||
} | } \lyricsto melody \text | ||
>> | >> | ||
</lilypond> | </lilypond> | ||
[[Category:Spacing]] | [[Category:Spacing]] | ||
[[Category:Text]] | [[Category:Text]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category: | [[Category:Vocal music]] | ||
[[Category:Included in the official documentation]][[Category:Snippet]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 12:07, 30 December 2025
This snippet shows how to bring the lyrics line closer to the staff.
\version "2.24"
music = \relative c' { c4 d e f | g4 f e d | c1 }
text = \lyricmode { aa aa aa aa aa aa aa aa aa }
<<
\new Staff \new Voice = melody \music
% Default layout:
\new Lyrics \lyricsto melody \text
\new Staff \new Voice = melody \music
% Reducing the minimum space below the staff and above the lyrics.
\new Lyrics \with {
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
#'((basic-distance . 1))
} \lyricsto melody \text
>>