Next: , Previous: Chants, Up: Placement of lyrics


2.1.3.4 Spacing out syllables

To increase the spacing between lyrics, set the minimum-distance property of LyricSpace.

     
     {
       c c c c
       \override Lyrics.LyricSpace #'minimum-distance = #1.0
       c c c c
     }
     \addlyrics {
       longtext longtext longtext longtext
       longtext longtext longtext longtext
     }

[image of music]

To make this change for all lyrics in the score, set the property in the layout.

     
     \score {
       \relative c' {
       c c c c
       c c c c
       }
       \addlyrics {
       longtext longtext longtext longtext
       longtext longtext longtext longtext
       }
       \layout {
         \context {
           \Lyrics
           \override LyricSpace #'minimum-distance = #1.0
         }
       }
     }

[image of music]

Selected Snippets

Aligning lyrics

Horizontal alignment for lyrics cam be set by overriding the self-alignment-X property of the LyricText object. #-1 is left, #0 is center and #1 is right; however, you can use #LEFT, #CENTER and #RIGHT as well.

     
     \layout { ragged-right = ##f }
     \relative c'' {
       c1
       c1
       c1
     }
     \addlyrics {
       \once \override LyricText #'self-alignment-X = #LEFT
       "This is left-aligned"
       \once \override LyricText #'self-alignment-X = #CENTER
       "This is centered" 
       \once \override LyricText #'self-alignment-X = #1
       "This is right-aligned"
     }

[image of music]

Selected Snippets

Checking to make sure that text scripts and lyrics are within the margins is a relatively large computational task. To speed up processing, LilyPond does not perform such calculations by default; to enable it, use

\override Score.PaperColumn #'keep-inside-line = ##t

To make lyrics avoid bar lines as well, use

\layout {
  \context {
    \Lyrics
      \consists "Bar_engraver"
      \consists "Separating_line_group_engraver"
      \override BarLine #'transparent = ##t
  }
}

This page is for LilyPond-2.11.58 (development-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.

Other languages: français, español.