Next: , Previous: Upbeats, Up: Displaying rhythms


1.2.3.3 Unmetered music

Bar lines and bar numbers are calculated automatically. For unmetered music (cadenzas, for example), this is not desirable. To turn off automatic bar lines and bar numbers, use the commands \cadenzaOn and \cadenzaOff.

     
     c4 d e d
     \cadenzaOn
     c4 c d8 d d f4 g4.
     \cadenzaOff
     \bar "|"
     d4 e d c

[image of music]

Bar numbering is resumed at the end of the cadenza as if the cadenza were not there:

     
     \override Score.BarNumber #'break-visibility = ##( #t #t #t )
     c4 d e d
     \cadenzaOn
     c4 c d8 d d f4 g4.
     \cadenzaOff
     \bar "|"
     d4 e d c

[image of music]

Known issues and warnings

LilyPond will only insert line breaks and page breaks at a bar line. Unless the unmetered music ends before the end of the staff line, you will need to insert invisible bar lines with

\bar ""

to indicate where breaks can occur.

See also

Snippets: Rhythms


Next: , Previous: Upbeats, Up: Displaying rhythms

This page is for LilyPond-2.11.40 (development-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.

Other languages: français, español, deutsch.