lilypond-user
[Top][All Lists]
Advanced

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

Re: Spacing Cheat Sheet


From: Kaj
Subject: Re: Spacing Cheat Sheet
Date: Wed, 11 Mar 2015 14:12:32 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hi Joram,
Time has gone since you helped me to understand the vertical spacing mystery in LilyPond. Well I am not ready yet for the big battle, but a lot has been clear since. And a lot of thanks for your very valuable sheet compiling the different items. But not always I have got things work the way I wished, and more than once I have been ready to give up the LilyPond project. Today I found something in your sheet loosening a lot of knots. I think a small mistake has slipped into it. The left column, lower part, says "\override StaffGroup.StaffGrouper.staff-staff-spacing.padding = #2". At first this sounds reasonable, but I think that StaffGroup should be substituted with Score. Reading the Internals Reference confirms that the context StaffGroup does not create the grob StaffGrouper and also that StaffGrouper is not created by any engraver. Well, I am not the person to account for all this, but after reading the Notation Reference (http://lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-within-systems#spacing-of-grouped-staves) and the example there, I feel encouraged to announce my experience. My case worked with context Score but not with StaffGroup.

The next line however: "\override Staff.VerticalAxisGroup etc" is perfectly correct as VerticalAxisGroup is created by Axis_Group_Engraver which belongs to the context Staff. Possibly the context Staff could also be use in the previous case, but I have not tested this.

Best regards
Kaj

Den 2015-02-21 14:04, skrev Noeck:
Hi Kaj, hi Lilypond users,

I also would like to say that again that spacing is a bit daunting. But I hope
with the help you got here, it is possible to adjust the spacing you need. The
deeper understanding will come with time and it is difficult if one wants to
understand everything at once.

To make the use of spacing settings easier, I put the most relevant settings on
this page:
http://joramberger.de/files/LilypondSpacing.pdf

The aim of this is not to explain everything – that is better done in the docs –
but to give a visual summary of the spacing settings and an example (on the
left) how to change them. If you know that there are different settings in the
paper and in the layout block and that there are fixed distances (in mm, cm, in)
and flexible spacings (minimum-distance, basic-distance, padding,
strechability), then this cheat sheet should make it easier to adjust all these
to your liking.

Cheers,
Joram

PS: Lyrics and other nonstaff spacings are to be done.






reply via email to

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