\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.
}
@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},
+++ /dev/null
-\version "2.17.6"
-
-\header {
- lsrtags = "repeats, tweaks-and-overrides"
-
- texidoc = "
-A @code{.|:} bar line can be printed at the beginning of a piece, by
-overriding the relevant property:
-
-"
- doctitle = "Printing a repeat sign at the beginning of a piece"
-}
-
-
-\relative c'' {
- \once \override Score.BreakAlignment.break-align-orders =
- #(make-vector 3 '(instrument-name
- left-edge
- ambitus
- breathing-sign
- clef
- key-signature
- time-signature
- staff-bar
- custos))
- \once \override Staff.TimeSignature.space-alist =
- #'((first-note . (fixed-space . 2.0))
- (right-edge . (extra-space . 0.5))
- ;; free up some space between time signature
- ;; and repeat bar line
- (staff-bar . (extra-space . 1)))
- \bar ".|:"
- c1
- d1
- d4 e f g
-}