lilypond-user
[Top][All Lists]
Advanced

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

(mostly solved) Re: Lyrics spacing from LeftEdge?


From: Wilbert Berendsen
Subject: (mostly solved) Re: Lyrics spacing from LeftEdge?
Date: Tue, 1 Apr 2008 08:22:34 +0200
User-agent: KMail/1.9.7

Op dinsdag 1 april 2008, schreef Mats Bengtsson:
> Isn't a better solution to make the first syllable left aligned
> with the note? This should automatically result in left aligned
> lyrics and aligned notes.

Unfortunately that does not look nice: with long words the spacing of both 
notes and words looks irregular. However: that could be an approach when 
there are more stanzas with lyrics. But in that case I think I would drop the 
requirement that lyric texts are aligned.

I am now using an approach to have one transparent bar line at the beginning 
of a line (in fact at the end, just before the \break), and have the barline 
also drawn in the lyrics context. That works perfectly! but I have only some 
trouble with the first line (because of the stanza number, that also wants to 
be within the barline). But it's no problem to align that line by hand.

How I did it:

\layout {
  ragged-right = ##t
  \context {
    \Score
    \override LeftEdge #'space-alist #'key-signature = #'(extra-space . 1)
    % this one I set manually (on the eye)
    \override TimeSignature #'space-alist #'first-note = #'(extra-space . 4.6)
    % this is the distance from the keysig to the first (transparent) barline:
    \override KeySignature #'space-alist #'staff-bar = #'(extra-space . 9.0)
  }
  \context {
    \Staff
    % although ragged-right, lengthen the staff lines
    \override StaffSymbol #'width = #'60
    % clef only on first line
    \override Clef #'break-visibility = #all-invisible
    % no space from the first (transparent) barline to the note
    \override BarLine #'space-alist #'first-note = #'(fixed-space . 0.0)
  }
  \context {
    \Lyrics
    \consists Bar_engraver
    \override BarLine #'transparent = ##t
  }
}

best regards,
Wilbert Berendsen

-- 
LilyKDE, LilyPond for KDE: http://lilykde.googlecode.com/




reply via email to

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