]> git.donarmstrong.com Git - lilypond.git/commitdiff
Adding new snippet generated from previous Makelsr
authorJames Lowe <pkx166h@gmail.com>
Sun, 29 Jun 2014 09:14:34 +0000 (10:14 +0100)
committerJames Lowe <pkx166h@gmail.com>
Sun, 29 Jun 2014 09:14:34 +0000 (10:14 +0100)
See commit 499ff80772530b66e59768a4251bde08bd77fab4

My mistake. Sorry.

Documentation/snippets/using-an-extra-voice-for-breaks.ly [new file with mode: 0644]

diff --git a/Documentation/snippets/using-an-extra-voice-for-breaks.ly b/Documentation/snippets/using-an-extra-voice-for-breaks.ly
new file mode 100644 (file)
index 0000000..b0c952c
--- /dev/null
@@ -0,0 +1,49 @@
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.18.0
+\version "2.18.0"
+
+\header {
+  lsrtags = "specific-notation, workaround"
+
+  texidoc = "
+
+Often it is easier to manage line and page-breaking information by
+keeping it separate from the music by introducing an extra voice
+containing only skips along with the @code{\\break},
+@code{pageBreak} and other layout information.
+
+This pattern becomes especially helpful when overriding
+@code{line-break-system-details} and the other useful but long
+properties of @code{NonMusicalPaperColumnGrob}.
+"
+  doctitle = "Using an extra voice for breaks"
+} % begin verbatim
+
+
+music = \relative c'' { c4 c c c }
+
+\header { tagline = ##f }
+\paper { left-margin = 0\mm }
+\book {
+  \score {
+    \new Staff <<
+      \new Voice {
+        s1 * 2 \break
+        s1 * 3 \break
+        s1 * 6 \break
+        s1 * 5 \break
+      }
+      \new Voice {
+        \repeat unfold 2 { \music }
+        \repeat unfold 3 { \music }
+        \repeat unfold 6 { \music }
+        \repeat unfold 5 { \music }
+      }
+    >>
+  }
+}