]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/printing-bar-numbers-with-changing-regular-intervals.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / printing-bar-numbers-with-changing-regular-intervals.ly
diff --git a/Documentation/snippets/printing-bar-numbers-with-changing-regular-intervals.ly b/Documentation/snippets/printing-bar-numbers-with-changing-regular-intervals.ly
new file mode 100644 (file)
index 0000000..a78462a
--- /dev/null
@@ -0,0 +1,26 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
+
+\header {
+  lsrtags = "rhythms, text"
+
+  texidoc = "
+The bar number interval can be changed by changing the context function
+@code{@{set-bar-number-visibility@}}.
+
+"
+  doctitle = "Printing bar numbers with changing regular intervals"
+} % begin verbatim
+
+\relative c' {
+  \override Score.BarNumber.break-visibility = #end-of-line-invisible
+  \context Score \applyContext #(set-bar-number-visibility 4)
+  \repeat unfold 10 c'1
+  \context Score \applyContext #(set-bar-number-visibility 2)
+  \repeat unfold 10 c
+}