[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

External sites
lilypond.org/development
lilypond.org/stable
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Bar numbers

Bar numbers are printed by default at the start of the line. The number itself is a property that can be set by modifying the currentBarNumber property, i.e.

       \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 break-visibility as well as the translator property barNumberVisibility, as illustrated in the following example which also adds a box around the bar numbers:

     \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
     

[picture of music]

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.6.6 (stable-branch) by

<(address unknown)>, Thu Dec 26 14:15:44 2002 MSK.