Increasing spacing between staves: Difference between revisions
m Add a link to LilyPond documentation |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Vertical spacing is automatically set so that the layout of a score is neither too cramped or loose. Changing the distance between systems, however, is easy to do. You may want to move systems closer together so that more can fit on the page, for example. | Vertical spacing is automatically set so that the layout of a score is neither too cramped or loose. Changing the distance between systems, however, is easy to do. You may want to move systems closer together so that more can fit on the page, for example. | ||
The paper variable that controls the distance between (independent) staves is called <code>system-system-spacing</code>. It provides four keys for fine-tuned control, but you may find that you can get the spacing you want with changes to just one or two. The output of this snippet is the result of a change to a single key, <code>padding</code>. You may want to experiment with the commented-out line below it, which contains the default values for <code>system-system-spacing</code> and shows the syntax to use for changes in groups. Numbers represent distances in staff spaces. | |||
For more details you should consult [ | For more details you should consult [{{LILYSTABLEDOC}}/notation/page-layout Section ‘Page layout’ of the Notation Reference]. | ||
<lilypond version="2.24"> | |||
\paper { | \paper { | ||
% spacing variables may be changed individually: | % spacing variables may be changed individually: | ||
| Line 21: | Line 17: | ||
} | } | ||
\new Staff { | |||
\repeat unfold 96 { c''8[ c''] } | |||
} | } | ||
</lilypond> | </lilypond> | ||
[[Category:Paper and layout]] | |||
[[Category:Spacing]] | [[Category:Spacing]] | ||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Snippet]] | [[Category:Snippet]] | ||
Latest revision as of 05:32, 3 January 2026
Vertical spacing is automatically set so that the layout of a score is neither too cramped or loose. Changing the distance between systems, however, is easy to do. You may want to move systems closer together so that more can fit on the page, for example.
The paper variable that controls the distance between (independent) staves is called system-system-spacing. It provides four keys for fine-tuned control, but you may find that you can get the spacing you want with changes to just one or two. The output of this snippet is the result of a change to a single key, padding. You may want to experiment with the commented-out line below it, which contains the default values for system-system-spacing and shows the syntax to use for changes in groups. Numbers represent distances in staff spaces.
For more details you should consult Section ‘Page layout’ of the Notation Reference.
\version "2.24"
\paper {
% spacing variables may be changed individually:
system-system-spacing.padding = #8
% or as a group:
%system-system-spacing =
% #'((basic-distance . 12)
% (minimum-distance . 8)
% (padding . 1)
% (stretchability . 60))
}
\new Staff {
\repeat unfold 96 { c''8[ c''] }
}