lilypond-user
[Top][All Lists]
Advanced

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

Re: Lyric-Staff-spacing fails with smaller lyrics


From: Marc Hohl
Subject: Re: Lyric-Staff-spacing fails with smaller lyrics
Date: Sat, 12 Oct 2013 15:11:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

Am 12.10.2013 13:42, schrieb Eluze:
Marc Hohl wrote
Hello list,

I want to place lyrics above and below a certain staff which works
perfectly as long as I do not change the size of staff and lyrics,
see the attached file and its resulting pdf.

Interestingly, it seems that tin example 2, the upper lyrics are
farther away in the first line, whereas the lower lyrics are farther
away in the second line.

How can I achieve the narrower lyrics from example 1 with the smaller
lyrics and staves of example 2?

I don't think LP fails, it's just that the vertical spacing isn't corrected
with the \staffSize macro (which btw can be simplified to

staffSize = #(define-music-function (parser location new-size) (number?)
   #{
     \set fontSize = #new-size
     \override StaffSymbol #'staff-space = #(magstep new-size)
     \override StaffSymbol #'thickness = #(magstep new-size)
   #})

and then it can be used in any context owning a font size engraver)

to control the vertical spacing just specify

\new Lyrics \with {
       \staffSize #-4 alignAboveContext = #"test"
       \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'(
         (basic-distance . 2)
         (padding . 1)
       )
     }

or similar

Thanks! I'll give it a try as soon as possible.
The idea with fontSize looks neat, thank you for
pointing this out!

Still I don't quite understand why the distances seem to change
between the first and the second line of the second example.

Marc




reply via email to

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