X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fusing-an-extra-voice-for-breaks.ly;h=c355a93f75dd8db2d7b222797fa856429cbed3d7;hb=ea6199771a7e78b35bd651f7db5f1b9b8205ee22;hp=b0c952ca65394b95164e1756f5226659f50895a9;hpb=730d4eb3e0328e8ba0b376f8191a5bb6ae7f904c;p=lilypond.git diff --git a/Documentation/snippets/using-an-extra-voice-for-breaks.ly b/Documentation/snippets/using-an-extra-voice-for-breaks.ly index b0c952ca65..c355a93f75 100644 --- a/Documentation/snippets/using-an-extra-voice-for-breaks.ly +++ b/Documentation/snippets/using-an-extra-voice-for-breaks.ly @@ -1,49 +1,43 @@ -% 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 +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.di.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. \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. +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 } - } - >> - } +\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 } + } + >> }