Printing bar numbers with changing regular intervals: Difference between revisions
Appearance
Import snippet from LSR |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Using the <code>set-bar-number-visibility</code> context function, bar number intervals can be changed. | Using the <code>set-bar-number-visibility</code> context function, bar number intervals can be changed. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\relative c' { | \relative c' { | ||
\override Score.BarNumber.break-visibility = #end-of-line-invisible | \override Score.BarNumber.break-visibility = #end-of-line-invisible | ||
| Line 9: | Line 9: | ||
\repeat unfold 10 c | \repeat unfold 10 c | ||
} | } | ||
</lilypond> | </lilypond> | ||
[[Category:Rhythms]] | [[Category:Rhythms]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 15:48, 30 November 2025
Using the set-bar-number-visibility context function, bar number intervals can be changed.
\version "2.24"
\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
}