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