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