]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly
Imported Upstream version 2.18.0
[lilypond.git] / Documentation / snippets / new / printing-a-repeat-sign-at-the-beginning-of-a-piece.ly
diff --git a/Documentation/snippets/new/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly b/Documentation/snippets/new/printing-a-repeat-sign-at-the-beginning-of-a-piece.ly
new file mode 100644 (file)
index 0000000..1bdd351
--- /dev/null
@@ -0,0 +1,36 @@
+\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
+}