lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Left align first word of lyrics


From: Phil Holmes
Subject: Re: Left align first word of lyrics
Date: Sun, 19 May 2013 10:25:59 +0100

----- Original Message ----- From: "Gregory Heytings" <address@hidden>
To: <address@hidden>
Sent: Sunday, May 19, 2013 2:11 AM
Subject: Left align first word of lyrics



Hi list,

Is it possible to automatically left align the first word of multiple line lyrics ? By default the lyrics are all centered under the note, which is okay in most situations, but perhaps not optimal for the first word of a staff. For example, the words "Ccc", "Cc" and "C" are centered under the c note with the following code:

\score {
  \new Staff <<
    \new Voice = A { \relative c' { c d e f } }
    \new Lyrics \lyricsto A { Ccc ddd eee fff }
    \new Lyrics \lyricsto A { Cc dd ee ff }
    \new Lyrics \lyricsto A { C d e f }
  >>
}

I know that it is possible to move a particular word by hand with "\once \override LyricText #'self-alignment-X = #...". This solution is however not only painful to type in, but its result is also most often only approximately correct.

Many thanks in advance,

Gregory

l=\once \override LyricText #'self-alignment-X = #-1

\score {
  \new Staff <<
    \new Voice = A { \relative c' { c d e f } }
    \new Lyrics \lyricsto A { \l Ccc ddd eee fff }
    \new Lyrics \lyricsto A { \l Cc dd ee ff }
    \new Lyrics \lyricsto A { \l C d e f }
  >>
}


Avoids the need for typing much, and seems to left-align accurately according to my output.

--
Phil Holmes



reply via email to

[Prev in Thread] Current Thread [Next in Thread]