lilypond-user
[Top][All Lists]
Advanced

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

Re: Line spacing (leading) of verses in a hymn


From: Matthew Fong
Subject: Re: Line spacing (leading) of verses in a hymn
Date: Fri, 27 Nov 2020 14:56:10 -0800

Hello Aaron,

Ah, I didn't dig deeply enough!
https://lilypond.org/doc/v2.20/Documentation/notation/flexible-vertical-spacing-within-systems#within_002dsystem-spacing-properties
https://lilypond.org/doc/v2.20/Documentation/notation/flexible-vertical-spacing-within-systems#spacing-of-non_002dstaff-lines

Your example and the documentation are in perfect accord. And I played around with it. However, when I plug it into my LilyPond file, it compresses considerably (!) Please see attached picture. I put all my Lyrics settings into your example and it still works as expected.

%%%
     \context {
       \Score
       \allowGrobCallback font-interface.font-size
     }
     \context {
       \Lyrics
       \override VerticalAxisGroup.staff-affinity = #UP
       \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #1
       \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
         % Default staff space is 5pt.  Scale to 12pt.
         #'((basic-distance . 12/5) (minimum-distance . 0) (padding . 0) (stretchability . 0))
       \override LyricText.self-alignment-X = #CENTER
       lyricMelismaAlignment = #CENTER
       \override LyricHyphen.minimum-distance = #0.5
       
%       \override LyricText.font-size =
%         % Default font-size is 11pt.  Scale to 10pt.
%         #(magnification->font-size 10/11)

       \override LyricText.font-size = \absFontSize 10
       \override LyricText.font-name = #"Palatino LT Std Roman"
     }
%%%



On Fri, Nov 27, 2020 at 2:20 PM Aaron Hill <lilypond@hillvisions.com> wrote:
On 2020-11-27 1:32 pm, Matthew Fong wrote:
> After some searching on the Internet, and looking at the LyricsText
> engraver, I was not able to find
> anything; VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding
> definitely was not it.

VerticalAxisGroup definitely is it.  You are just using the wrong
spacing parameter.  Lyrics are a "nonstaff" item, so you need to adjust
nonstaff-nonstaff-spacing.  Also, you do not want padding, as that is
the distance between ink.  You need basic-distance, which for Lyrics is
measured from baseline to baseline.

%%%%
\version "2.20.0"

\score {
   <<
     \new Staff \new Voice = melody { b'8 8 g'4 a'2 }
     \new Lyrics \lyricsto melody { Lo -- rem ip -- sum }
     \new Lyrics \lyricsto melody { Lo -- rem ip -- sum }
   >>
   \layout {
     \context {
       \Lyrics
       \override LyricText.font-size =
         % Default font-size is 11pt.  Scale to 10pt.
         #(magnification->font-size 10/11)
       \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
         % Default staff space is 5pt.  Scale to 12pt.
         #'((basic-distance . 12/5) (minimum-distance . 0)
            (padding . 0) (stretchability . 0))
     }
   }
}
%%%%


-- Aaron Hill

Attachment: Screen Shot 2020-11-27 at 14.50.34.png
Description: PNG image


reply via email to

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