]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/aligning-bar-numbers.ly
LSR: Update.
[lilypond.git] / input / lsr / aligning-bar-numbers.ly
diff --git a/input/lsr/aligning-bar-numbers.ly b/input/lsr/aligning-bar-numbers.ly
new file mode 100644 (file)
index 0000000..f1d171c
--- /dev/null
@@ -0,0 +1,33 @@
+%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
+%% This file is in the public domain.
+\version "2.12.3"
+
+\header {
+  lsrtags = "rhythms"
+
+  texidoc = "
+Bar numbers by default are right-aligned to their parent object. This
+is usually the left edge of a line or, if numbers are printed within a
+line, the left hand side of a bar line.  The numbers may also be
+positioned directly over the bar line or left-aligned to the bar line.
+
+"
+  doctitle = "Aligning bar numbers"
+} % begin verbatim
+
+\relative c' {
+  \set Score.currentBarNumber = #111
+  \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
+  % Increase the size of the bar number by 2
+  \override Score.BarNumber #'font-size = #2
+  % Print a bar number every second measure
+  \set Score.barNumberVisibility = #(every-nth-bar-number-visible 2)
+  c1 | c1
+  % Center-align bar numbers
+  \override Score.BarNumber #'self-alignment-X = #CENTER
+  c1 | c1
+  % Left-align bar numbers
+  \override Score.BarNumber #'self-alignment-X = #LEFT
+  c1 | c1
+}
+