]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly
Rerun scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / new / printing-a-repeat-sign-at-the-beginning-of-a-piece.ly
1 \version "2.17.6"
2
3 \header {
4   lsrtags = "repeats, tweaks-and-overrides"
5
6   texidoc = "
7 A @code{.|:} bar line can be printed at the beginning of a piece, by
8 overriding the relevant property:
9
10 "
11   doctitle = "Printing a repeat sign at the beginning of a piece"
12 }
13
14
15 \relative c'' {
16   \once \override Score.BreakAlignment.break-align-orders =
17     #(make-vector 3 '(instrument-name
18                       left-edge
19                       ambitus
20                       breathing-sign
21                       clef
22                       key-signature
23                       time-signature
24                       staff-bar
25                       custos))
26   \once \override Staff.TimeSignature.space-alist =
27     #'((first-note . (fixed-space . 2.0))
28        (right-edge . (extra-space . 0.5))
29        ;; free up some space between time signature
30        ;; and repeat bar line
31        (staff-bar . (extra-space . 1)))
32   \bar ".|:"
33   c1
34   d1
35   d4 e f g
36 }