]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/alternative-bar-numbering.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / alternative-bar-numbering.ly
diff --git a/Documentation/snippets/alternative-bar-numbering.ly b/Documentation/snippets/alternative-bar-numbering.ly
new file mode 100644 (file)
index 0000000..74b6082
--- /dev/null
@@ -0,0 +1,35 @@
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.15.24
+\version "2.16.0"
+
+\header {
+  lsrtags = "editorial-annotations, staff-notation, tweaks-and-overrides"
+  texidoc = "Two alternative methods for bar numbering can be set,
+  especially for when using repeated music."
+  doctitle = "Alternative bar numbering"
+} % begin verbatim
+
+
+\relative c'{
+  \set Score.alternativeNumberingStyle = #'numbers
+  \repeat volta 3 { c4 d e f | }
+    \alternative {
+      { c4 d e f | c2 d \break }
+      { f4 g a b | f4 g a b | f2 a | \break }
+      { c4 d e f | c2 d }
+    }
+  c1 \break
+  \set Score.alternativeNumberingStyle = #'numbers-with-letters
+  \repeat volta 3 { c,4 d e f | }
+    \alternative {
+      { c4 d e f | c2 d \break }
+      { f4 g a b | f4 g a b | f2 a | \break }
+      { c4 d e f | c2 d }
+    }
+  c1
+}