[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/stable
lilypond.org/development
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Bar lines

Bar lines are inserted automatically, but if you need a special type of barline, you can force one using the \bar command:

     c4 \bar "|:" c4
     
[picture of music]

The following bar types are available

     c4
     \bar "|" c
     \bar "" c
     \bar "|:" c
     \bar "||" c
     \bar ":|" c
     \bar ".|" c
     \bar ".|." c
     \bar "|."
     
[picture of music]

You are encouraged to use \repeat for repetitions. See Repeats.

In scores with many staves, the barlines are automatically placed at top level, and they are connected between different staves of a StaffGroup :

     < \context StaffGroup <
       \context Staff = up { e'4 d'
          \bar "||"
          f' e' }
       \context Staff = down { \clef bass c4 g e g } >
     \context Staff = pedal { \clef bass c2 c2 } >
     
[picture of music]

The objects that are created at Staff level. The name is BarLine .

The command \bar bartype is a short cut for doing \property Score.whichBar = bartype Whenever whichBar is set to a string, a bar line of that type is created. whichBar is usually set automatically: at the start of a measure it is set to defaultBarType. The contents of repeatCommands is used to override default measure bars.

whichBar can also be set directly, using \property or \bar . These settings take precedence over the automatic whichBar settings.

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

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.