Printing bar numbers for broken measures: Difference between revisions

m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
By default a <code>BarNumber</code> of a broken measure is not repeated at the beginning of the new line. Use <code>first-bar-number-invisible-save-broken-bars</code> for <code>barNumberVisibility</code> to get a parenthesized <code>BarNumber</code> there.
By default, a bar number of a broken measure is not repeated at the beginning of the new line. Use <code>first-bar-number-invisible-save-broken-bars</code> for <code>barNumberVisibility</code> to get a parenthesized <code>BarNumber</code> there.


<lilypond version="2.24" full>
<lilypond version="2.24">
\layout {
\layout {
   \context {
   \context {
Line 11: Line 11:


\relative c' {
\relative c' {
   c1 | d | e | f2 \bar "" \break
   c1 | d | e | f2 \break
   fis | g1 | e2 \bar "" \break
   fis2 | g1 | e2 \break
   <>^"reenabled default"
   <>^"reenabled default"
   % back to default -
   % back to default -
Line 18: Line 18:
   \set Score.barNumberVisibility =  
   \set Score.barNumberVisibility =  
     #first-bar-number-invisible-and-no-parenthesized-bar-numbers
     #first-bar-number-invisible-and-no-parenthesized-bar-numbers
   es | d1 | c  
   es2 | d1 | c  
}
}
\paper { tagline = ##f }
</lilypond>
</lilypond>


[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]