]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/user/repeats.itely
Merge branch 'master' of ssh://kainhofer@git.sv.gnu.org/srv/git/lilypond into kainhofer
[lilypond.git] / Documentation / user / repeats.itely
index 87bf6235b1a178f9a4774167a2e5adeb1a434086..1c62bef6431bc750eff983e2dd1d6d6b099d0e61 100644 (file)
 {repeats-headword.ly}
 
 Repetition is a central concept in music, and multiple notations
-exist for repetitions.
+exist for repetitions. LilyPond supports the following kinds of repeats:
 
-@menu
-* Writing repeats::             
-* Other repeats::               
-@end menu
-
-@node Writing repeats
-@subsection Writing repeats
-
-Blah blah
-
-@menu
-* Repeat syntax::               
-* Normal repeats::              
-* Manual repeat commands::      
-@end menu
-
-
-@node Repeat syntax
-@unnumberedsubsubsec Repeat syntax
-
-@cindex repeats
-
-LilyPond has one syntactic construct for specifying different
-types of repeats.  The syntax is
-
-@example
-\repeat @var{variant} @var{repeatcount} @var{repeatbody}
-@end example
-
-where @var{repeabody} is a music expression.
-
-The following types of repetition are supported
 
 @table @code
 @item volta
@@ -61,15 +29,25 @@ The repeated music is fully written out, as many times as
 specified by @var{repeatcount}.  This is useful when
 entering repetitious music. 
 
-@item tremolo
-Make tremolo beams.
-
 @item percent
 Make beat or measure repeats.  These look like percent signs.
 Percent repeats must be declared within a @code{Voice} context.
 
+@item tremolo
+Make tremolo beams.
+
 @end table
 
+LilyPond has one syntactic construct for specifying different
+types of repeats.  The syntax is
+
+@example
+\repeat @var{variant} @var{repeatcount} @var{repeatbody}
+@end example
+
+where @var{repeabody} is a music expression.
+
+
 Alternative endings are entered with 
 @funindex \alternative
 @example
@@ -83,23 +61,42 @@ Alternative endings are entered with
 
 @noindent
 after a @code{\repeat volta} or @code{unfold} block, where each
-@var{alternative} is a music expression.  If you give
-less alternatives than @var{repeatcount}, the first alternative
-is assumed to be played more than once.
+@var{alternative} is a music expression.  If you give fewer
+alternatives than @var{repeatcount}, the first alternative is assumed
+to be played more than once.
 
 
-@node Normal repeats
-@unnumberedsubsubsec Normal repeats
+@menu
+* Writing long repeats::        
+* Short repeats::               
+@end menu
+
+@node Writing long repeats
+@subsection Writing long repeats
+
+@menu
+* Normal repeats::              
+* Manual repeat marks::         
+@end menu
 
 @cindex volta
 @cindex prima volta
 @cindex seconda volta
+@cindex volta, prima
+@cindex volta, seconda
 @funindex \repeat
 
+@node Normal repeats
+@subsubsection Normal repeats
+
+FIXME: this example needs to go by itself.
+@verbatim
+\repeat volta 2 { c4 d e f }
+@end verbatim
+
 Normal repeats, with or without alternate repeats:
 
 @lilypond[quote,ragged-right,fragment,verbatim,relative=2]
-\repeat volta 2 { c4 d e f }
 \repeat volta 2 { g f e d }
   \alternative {
     { cis2 g' }
@@ -107,7 +104,6 @@ Normal repeats, with or without alternate repeats:
   }
 c1
 @end lilypond
-
 Repeats with upbeats:
 
 @lilypond[quote,ragged-right,fragment,verbatim,relative=2]
@@ -161,7 +157,7 @@ and brackets for the repeat are thus normally only printed over
 the topmost staff.  This can be adjusted by adding
 @code{Volta_engraver} to the Staff context where you want the
 brackets to appear; see @ref{Modifying context plug-ins} and
-@lsr{repeats,volta@/-multi@/-staff@/.ly}.
+@c @lsr{repeats,volta@/-multi@/-staff@/.ly}.
 
 @lilypond[verbatim,ragged-right,quote]
 \score { <<
@@ -186,7 +182,7 @@ see @ref{Bar lines} for more information.
 
 @seealso
 
-Snippets: @lsrdir{repeats}
+Snippets: @lsrdir{Repeats,Repeats}
 
 Internals Reference: @internalsref{VoltaBracket},
 @internalsref{RepeatedMusic},
@@ -196,7 +192,7 @@ Internals Reference: @internalsref{VoltaBracket},
 @c Examples:
 
 
-@refbugs
+@knownissues
 
 @cindex repeat, ambiguous
 
@@ -222,8 +218,8 @@ repeated.
 
 
 
-@node Manual repeat commands
-@unnumberedsubsubsec Manual repeat commands
+@node Manual repeat marks
+@subsubsection Manual repeat marks
 
 @funindex repeatCommands
 
@@ -261,26 +257,80 @@ c4 c4
 c4 c4
 @end lilypond
 
+@c FIXME: improve visibility of bar lines link?
 
 @seealso
 
-Snippets: @lsrdir{repeats}
+Notation Reference: @ref{Bar lines}.
+
+Snippets: @lsrdir{Repeats,Repeats}
 
 Internals Reference: @internalsref{VoltaBracket},
 @internalsref{RepeatedMusic}, @internalsref{VoltaRepeatedMusic},
 and @internalsref{UnfoldedRepeatedMusic}.
 
 
-@node Other repeats
-@subsection Other repeats
+@node Short repeats
+@subsection Short repeats
 
 @menu
+* Percent repeats::             
 * Tremolo repeats::             
-* Measure repeats::             
 @end menu
 
+@node Percent repeats
+@subsubsection Percent repeats
+
+@cindex percent repeats
+@cindex measure repeats
+
+A note pattern can be repeated with the @code{\repeat percent
+@var{number}} syntax.  The music is printed once, and the pattern
+is replaced with a special sign.  Patterns of one and two measures
+are replaced by percent-like signs, patterns that divide the
+measure length are replaced by slashes.  Percent repeats must be
+declared within a @code{Voice} context.
+
+@lilypond[quote,verbatim,ragged-right]
+\new Voice \relative c' {
+  \repeat percent 4 { c4 }
+  \repeat percent 2 { c2 es2 f4 fis4 g4 c4 }
+}
+@end lilypond
+
+Measure repeats of more than two measures get a counter if you
+switch on the @code{countPercentRepeats} property:
+
+@lilypond[relative=2,fragment,quote,verbatim,ragged-right]
+\new Voice {
+  \set countPercentRepeats = ##t
+  \repeat percent 4 { c1 }
+}
+@end lilypond
+
+
+Isolated percents can also be printed.  This is done by entering a
+multi-measure rest with a different print function:
+
+@lilypond[fragment,verbatim,quote]
+\override MultiMeasureRest #'stencil
+  = #ly:multi-measure-rest::percent
+R1
+@end lilypond
+
+
+@seealso
+
+Snippets: @lsrdir{Repeats,Repeats}
+
+Internals Reference: @internalsref{RepeatSlash},
+@internalsref{PercentRepeat}, @internalsref{DoublePercentRepeat},
+@internalsref{DoublePercentRepeatCounter},
+@internalsref{PercentRepeatCounter},
+@internalsref{PercentRepeatedMusic}.
+
 @node Tremolo repeats
-@unnumberedsubsubsec Tremolo repeats
+@subsubsection Tremolo repeats
 
 @cindex tremolo beams
 
@@ -329,7 +379,7 @@ c'2:8 c':32 | c': c': |
 @end lilypond
 
 
-@refbugs
+@knownissues
 
 
 Tremolos entered with @q{@code{:}[@var{number}]} do not carry over
@@ -343,64 +393,11 @@ Notation Reference: @ref{Tremolo repeats}.
 Internals Reference: @internalsref{Beam},
 @internalsref{StemTremolo}.
 
-Snippets: @lsrdir{repeats}
+Snippets: @lsrdir{Repeats,Repeats}
 
 Elsewhere: @internalsref{StemTremolo}.
 
 
-@node Measure repeats
-@unnumberedsubsubsec Measure repeats
-
-@cindex percent repeats
-@cindex measure repeats
-
-A note pattern can be repeated with the @code{\repeat percent
-@var{number}} syntax.  The music is printed once, and the pattern
-is replaced with a special sign.  Patterns of one and two measures
-are replaced by percent-like signs, patterns that divide the
-measure length are replaced by slashes.  Percent repeats must be
-declared within a @code{Voice} context.
-
-@lilypond[quote,verbatim,ragged-right]
-\new Voice \relative c' {
-  \repeat percent 4 { c4 }
-  \repeat percent 2 { c2 es2 f4 fis4 g4 c4 }
-}
-@end lilypond
-
-Measure repeats of more than two measures get a counter if you
-switch on the @code{countPercentRepeats} property:
-
-@lilypond[relative=2,fragment,quote,verbatim,ragged-right]
-\new Voice {
-  \set countPercentRepeats = ##t
-  \repeat percent 4 { c1 }
-}
-@end lilypond
-
-
-Isolated percents can also be printed.  This is done by entering a
-multi-measure rest with a different print function:
-
-@lilypond[fragment,verbatim,quote]
-\override MultiMeasureRest #'stencil
-  = #ly:multi-measure-rest::percent
-R1
-@end lilypond
-
-
-
-
-@seealso
-
-Snippets: @lsrdir{repeats}
-
-Internals Reference: @internalsref{RepeatSlash},
-@internalsref{PercentRepeat}, @internalsref{DoublePercentRepeat},
-@internalsref{DoublePercentRepeatCounter},
-@internalsref{PercentRepeatCounter},
-@internalsref{PercentRepeatedMusic}.
-