]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/alternative-bar-numbering.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / new / alternative-bar-numbering.ly
diff --git a/Documentation/snippets/new/alternative-bar-numbering.ly b/Documentation/snippets/new/alternative-bar-numbering.ly
new file mode 100644 (file)
index 0000000..78903e3
--- /dev/null
@@ -0,0 +1,27 @@
+\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"
+}
+
+\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
+}