Jump to content

Adjusting vertical spacing of lyrics: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
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
Line 1: Line 1:
This snippet shows how to bring the lyrics line closer to the staff.
This snippet shows how to bring the lyrics line closer to the staff.


<lilypond version="2.24.0">
<lilypond version="2.24">
% Default layout:
% Default layout:
<<
<<

Revision as of 18:44, 16 November 2025

This snippet shows how to bring the lyrics line closer to the staff.

\version "2.24"

% Default layout:
<<
  \new Staff \new Voice = melody \relative c' {
    c4 d e f
    g4 f e d
    c1
  }
  \new Lyrics \lyricsto melody { aa aa aa aa aa aa aa aa aa }

  \new Staff {
    \new Voice = melody \relative c' {
      c4 d e f
      g4 f e d
      c1
    }
  }
  % Reducing the minimum space below the staff and above the lyrics:
  \new Lyrics \with {
    \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
      #'((basic-distance . 1))
  }
  \lyricsto melody { aa aa aa aa aa aa aa aa aa }
>>