X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fnotation%2Frepeats.itely;h=8d9312716dbb96ca5a2b68be9231f346b63f9bd0;hb=d36171e34d236d890f5dc511b895037188c6c7cb;hp=ba57fe22b02d856a08b4e794472287b661ba982b;hpb=8057186870ac983e57366807d0fbb30d9b671452;p=lilypond.git diff --git a/Documentation/notation/repeats.itely b/Documentation/notation/repeats.itely index ba57fe22b0..8d9312716d 100644 --- a/Documentation/notation/repeats.itely +++ b/Documentation/notation/repeats.itely @@ -7,7 +7,7 @@ Guide, node Updating translation committishes.. @end ignore -@c \version "2.17.11" +@c \version "2.19.21" @node Repeats @section Repeats @@ -94,6 +94,16 @@ c2 d \repeat volta 2 { d4 e f g } @end lilypond +An @q{opening} repeat mark is not, by default, printed in the first full +measure. However it is possible to add one by using @code{\bar ".|:"} +before the first note. + +@lilypond[verbatim,fragment,quote,relative=2] +\repeat volta 2 { \bar ".|:" c4 d e f } +c2 d +\repeat volta 2 { d4 e f g } +@end lilypond + Alternative endings can be produced using @code{\alternative}. Each group of alternatives must be themselves, enclosed in a set of braces. @@ -204,41 +214,6 @@ a2 a | g1 | @end lilypond -When alternate endings are added to a repeat that begins with an -incomplete measure, it becomes necessary to set the -@code{Timing.measureLength} context property manually, in the -following specific places: - -@itemize -@item -at the start of any incomplete measures in the @code{\alternative} -block, which normally occur at the end of each alternative, except -(in most cases) the last. - -@item -at the start of each alternative, except the first. -@end itemize - -@lilypond[verbatim,quote,relative=1] -\partial 4 -\repeat volta 2 { e4 | c2 e | } -\alternative { - { - f2 d | - \set Timing.measureLength = #(ly:make-moment 3/4) - g4 g g % optional bar check is allowed here - } - { - \set Timing.measureLength = #(ly:make-moment 4/4) - a2 a | - } -} -g1 | -@end lilypond - -The @code{measureLength} property is described in @ref{Time -administration}. - @cindex repeats, with ties @cindex alternative endings, with ties @cindex ties, in repeats @@ -360,6 +335,9 @@ Notation Reference: @ref{Modifying ties and slurs}, @ref{Time administration}. +Installed Files: +@file{ly/engraver-init.ly}. + Snippets: @rlsr{Repeats}. @@ -508,8 +486,8 @@ then include the markup in a Scheme list. @lilypond[verbatim,quote] voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } } -\relative c'' { - c1 +\relative { + c''1 \set Score.repeatCommands = #(list(list 'volta voltaAdLib) 'start-repeat) c4 b d e @@ -519,12 +497,6 @@ voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } } } @end lilypond - -@snippets - -@lilypondfile[verbatim,quote,texidoc,doctitle] -{printing-a-repeat-sign-at-the-beginning-of-a-piece.ly} - @seealso Notation Reference: @ref{Bar lines},