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