Next: , Previous: Octave check, Up: Easier music entry



5.2.3 Bar check

Bar checks help detect errors in the durations. A bar check is entered using the bar symbol, `|'. Whenever it is encountered during interpretation, it should fall on a measure boundary. If it does not, a warning is printed. In the next example, the second bar check will signal an error

\time 3/4 c2 e4 | g2 |

Bar checks can also be used in lyrics, for example

\lyricmode {
  \time 2/4
  Twin -- kle | Twin -- kle
}

Failed bar checks are caused by entering incorrect durations. Incorrect durations often completely garble up the score, especially if the score is polyphonic, so a good place to start correcting input is by scanning for failed bar checks and incorrect durations. To speed up this process, the skipTypesetting feature may be used. It is described in the next section.

It is also possible to redefine the meaning of |. This is done by assigning a music expression to pipeSymbol,

     pipeSymbol = \bar "||"
     
     { c'2 c' | c'2 c }

[image of music]

Read comments on this page, or add one.

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

Report errors to <bug-lilypond@gnu.org>.

Other languages: English.
Using automatic language selection.