]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly
New bar line interface
[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.5"
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 \relative c'' {
23   \once \override Score.BreakAlignment #'break-align-orders =
24     #(make-vector 3 '(instrument-name
25                       left-edge
26                       ambitus
27                       breathing-sign
28                       clef
29                       key-signature
30                       time-signature
31                       staff-bar
32                       custos))
33   \once \override Staff.TimeSignature #'space-alist =
34     #'((first-note . (fixed-space . 2.0))
35        (right-edge . (extra-space . 0.5))
36        ;; free up some space between time signature
37        ;; and repeat bar line
38        (staff-bar . (extra-space . 1)))
39   \bar ".|:"
40   c1
41   d1
42   d4 e f g
43 }