]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/using-an-extra-voice-for-breaks.ly
Add '-dcrop' option to ps and svg backends
[lilypond.git] / Documentation / snippets / using-an-extra-voice-for-breaks.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "specific-notation, workaround"
11
12   texidoc = "
13 Often it is easier to manage line and page-breaking information by
14 keeping it separate from the music by introducing an extra voice
15 containing only skips along with the @code{\\break}, @code{pageBreak}
16 and other layout information.
17
18 This pattern becomes especially helpful when overriding
19 @code{line-break-system-details} and the other useful but long
20 properties of @code{NonMusicalPaperColumnGrob}.
21
22 "
23   doctitle = "Using an extra voice for breaks"
24 } % begin verbatim
25
26 music = \relative c'' { c4 c c c }
27
28 \score {
29   \new Staff <<
30     \new Voice {
31       s1 * 2 \break
32       s1 * 3 \break
33       s1 * 6 \break
34       s1 * 5 \break
35     }
36     \new Voice {
37       \repeat unfold 2 { \music }
38       \repeat unfold 3 { \music }
39       \repeat unfold 6 { \music }
40       \repeat unfold 5 { \music }
41     }
42   >>
43 }