]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: NR Clarify finer point of repeat unfold
authorJames Lowe <james.lowe@datacore.com>
Thu, 15 Sep 2011 21:44:42 +0000 (22:44 +0100)
committerJames Lowe <james.lowe@datacore.com>
Sat, 24 Sep 2011 02:11:29 +0000 (03:11 +0100)
This is for tracker issue 1801.

Explain as an example, that \repeat unfold 2 {music expression} is
not always the same as writing out the music expression twice - especially
in a \relative context.

Documentation/notation/repeats.itely

index d3f473fa820d545969a63cec3163d648aa3cf7a7..7af38d2d296531e314ad02bdf51a1dd95e5fc584 100644 (file)
@@ -471,6 +471,21 @@ where @code{@var{musicexpr}} is a music expression and
 c1
 @end lilypond
 
+In some cases, especially in a @code{\relative} context, the
+@code{\repeat unfold} function is not the same as writing out the
+music expression multiple times. E.g,
+
+@example
+\repeat unfold 2 @{ a'4 b c @}
+@end example
+
+is not equivalent to
+
+@example
+a'4 b c | a'4 b c
+@end example
+
+
 Unfold repeats can be made with alternate endings.
 
 @lilypond[verbatim,quote,relative=2]