Spacing issues - GNU LilyPond
Description: GNU LilyPond

Next: Interfaces for programmers, Previous: Non-musical notation, Up: Top

## 11 Spacing issues

The global paper layout is determined by three factors: the page layout, the line breaks, and the spacing. These all influence each other. The choice of spacing determines how densely each system of music is set. This influences where line breaks are chosen, and thus ultimately, how many pages a piece of music takes.

Globally speaking, this procedure happens in four steps: first, flexible distances (“springs”) are chosen, based on durations. All possible line breaking combinations are tried, and a “badness” score is calculated for each. Then the height of each possible system is estimated. Finally, a page breaking and line breaking combination is chosen so that neither the horizontal nor the vertical spacing is too cramped or stretched.

Next: Interfaces for programmers, Previous: Non-musical notation, Up: Top

This page is for LilyPond-2.10.33 (stable-branch).