--- /dev/null
+%% 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
+}