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.
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.
Indeed, many thanks, I did not expect that the solution would be so
trivial. I tried with various values of self-alignment-X, but not with
-1... The solution is not perfect, however. I was more expecting a
solution where the note is centered above the lyrics, and the lyrics
aligned left; in this case the lyrics are indeed left aligned, but the
note is also left aligned...
Best,
Gregory
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user