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