[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Docs: example for line-break-permission and page-break-permission
From: |
Paul Morris |
Subject: |
Docs: example for line-break-permission and page-break-permission |
Date: |
Mon, 24 Feb 2014 16:18:16 -0500 |
The example given here:
http://lilypond.org/doc/v2.18/Documentation/notation/explicit-breaks
is not so good since the output is actually the same when you comment out the
commands that it is intended to illustrate:
% \override NonMusicalPaperColumn.line-break-permission = ##f
% \override NonMusicalPaperColumn.page-break-permission = ##f
(It is a good demonstration of ragged-bottom and ragged-right, however.) To
improve it the number of measures on some of the lines and the number of lines
per page would need to be increased so that they are large enough to trigger an
automatic line break or page break if these commands were not present.
Below is a suggested revision that does a better job of illustrating the
effects of those two commands.
Thanks,
-Paul
%
\version "2.18.0"
\paper {
indent = #0
ragged-right = ##t
ragged-bottom = ##t
}
music = \relative c'' { c8 c c c }
\score {
\new Staff {
\repeat unfold 2 { \music } \break
\repeat unfold 2 { \music } \break
\repeat unfold 4 { \music } \break
\repeat unfold 6 { \music } \break
\repeat unfold 8 { \music } \break
\repeat unfold 10 { \music } \break
\repeat unfold 12 { \music } \break
\repeat unfold 14 { \music } \break
\repeat unfold 12 { \music } \break
\repeat unfold 10 { \music } \break
\repeat unfold 8 { \music } \break
\repeat unfold 6 { \music } \break
\repeat unfold 4 { \music } \break
\repeat unfold 2 { \music } \break
\repeat unfold 2 { \music } \pageBreak
\repeat unfold 2 { \music }
}
\layout {
\context {
\Score
\override NonMusicalPaperColumn.line-break-permission = ##f
\override NonMusicalPaperColumn.page-break-permission = ##f
}
}
}
- Docs: example for line-break-permission and page-break-permission,
Paul Morris <=