]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/printing-bar-numbers-with-changing-regular-intervals.ly
Makelsr.py run
[lilypond.git] / Documentation / snippets / printing-bar-numbers-with-changing-regular-intervals.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.18.0
8 \version "2.18.0"
9
10 \header {
11   lsrtags = "rhythms, text"
12
13   texidoc = "
14 The bar number interval can be changed by changing the context function
15 @code{set-bar-number-visibility}.
16
17 "
18   doctitle = "Printing bar numbers with changing regular intervals"
19 } % begin verbatim
20
21
22 \relative c' {
23   \override Score.BarNumber.break-visibility = #end-of-line-invisible
24   \context Score \applyContext #(set-bar-number-visibility 4)
25   \repeat unfold 10 c''1
26   \context Score \applyContext #(set-bar-number-visibility 2)
27   \repeat unfold 10 c''
28 } % begin verbatim