![]() |
GNU LilyPond-- -- |
||||||||||
|
Bar numbersBar numbers are printed by default at the start of the line. The
number itself is a property that can be set by modifying the
\property Score.currentBarNumber = #217 To typeset Bar Numbers at regular intervals instead of at the beginning of each line,
you need to change the grob property \property Score.BarNumber \override #'break-visibility = #end-of-line-invisible \property Score.barNumberVisibility = #(every-nth-bar-number-visible 5) \property Score.BarNumber \override #'molecule-callback = #(make-molecule-boxer 0.1 0.25 0.25 Text_item::brew_molecule) \property Score.BarNumber \override #'font-relative-size = #0
If you would like the bar numbers to appear at regular intervals, but
not starting from measure zero, you can use the context function,
resetBarnum = \context Score \applycontext #(set-bar-number-visibility 4) ... \property Score.BarNumber \override #'break-visibility = #end-of-line-invisible \mark "A" \resetBarnum \repeat unfold 10 c1 \mark \default \resetBarnum \repeat unfold 8 c
See also BarNumber . BUGS Barnumbers can collide with the StaffGroup, if there is one at the top. To solve this, You have to twiddle with the padding property of BarNumber if your score starts with a StaffGroup . |
||||||||||
Go back to index of LilyPond.
Please send GNU LilyPond questions and comments to lilypond-user@gnu.org. Please send comments on these web pages to (address unknown) Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. |
This page was built from LilyPond-1.7.14 (development-branch) by