- Remove the use of barchecks in lyrics in the LM, but retain
the link to the place where they are mentioned in the NR.
- Demonstrate the use of barchecks in a simple example of
music, replacing the example in lyrics. Note that this will
produce a warning when compiled.
length. Bar checks also make your input code easier to
read, since they help to keep things organized.
length. Bar checks also make your input code easier to
read, since they help to keep things organized.
-@lilypond[verbatim,quote,relative=2]
-g1 | e1 | c2. c'4 | g4 c g e | c4 r r2 |
+@c This example deliberately produces a warning
+@lilypond[verbatim,quote]
+\relative g' {
+ g1 | e1 | c2. c' | g4 c g e | c4 r r2 |
+}
+If you compile the code in the example above, you should see a
+warning in the console output:
+
+@example
+warning: barcheck failed at: 1/2
+ g1 | e1 | c2. c'
+ | g4 c g e | c4 r r2 |
+@end example
+
+Although the missing duration is clear in the musical output in this
+simple example, the warning in the console output is far more
+effective in drawing attention to the missing @code{4} in bar 3.
+
@seealso
Notation Reference:
@ruser{Bar and bar number checks}.
@seealso
Notation Reference:
@ruser{Bar and bar number checks}.
d4 b8 c4 a8 | d4 b8 g4
}
\addlyrics {
d4 b8 c4 a8 | d4 b8 g4
}
\addlyrics {
- Girls and boys come | out to play,
+ Girls and boys come out to play,
a4 b8 c b a | d4 b8 g4. |
}
\addlyrics {
a4 b8 c b a | d4 b8 g4. |
}
\addlyrics {
- Girls and boys come | out to play,
- The | moon doth shine as | bright as day; |
+ Girls and boys come out to play,
+ The moon doth shine as bright as day;
-If you compile the code in the example above, you should see some
-warnings in the console output:
-
-@example
-song.ly:12:29: warning: barcheck failed at: 5/8
- The | moon doth shine as
- | bright as day; |
-song.ly:12:46: warning: barcheck failed at: 3/8
- The | moon doth shine as | bright as day;
- |
-@end example
-
-This is a good example of the usefulness of bar checks. Now,
-looking at the music, we see that the extra lyrics do not align
+Looking at the music, we see that the extra lyrics do not align
properly with the notes. The word @notation{shine} should be sung
on two notes, not one. This is called a @notation{melisma}, a
single syllable sung to more than one note. There are several
properly with the notes. The word @notation{shine} should be sung
on two notes, not one. This is called a @notation{melisma}, a
single syllable sung to more than one note. There are several
a4 b8 c( b) a | d4 b8 g4. |
}
\addlyrics {
a4 b8 c( b) a | d4 b8 g4. |
}
\addlyrics {
- Girls and boys come | out to play,
- The | moon doth shine as | bright as day; |
+ Girls and boys come out to play,
+ The moon doth shine as bright as day;
a4 b8 c([ b]) a | d4 b8 g4. |
}
\addlyrics {
a4 b8 c([ b]) a | d4 b8 g4. |
}
\addlyrics {
- Girls and boys come | out to play,
- The | moon doth shine as | bright as day; |
+ Girls and boys come out to play,
+ The moon doth shine as bright as day;
a4 b8 c[ b] a | d4 b8 g4. |
}
\addlyrics {
a4 b8 c[ b] a | d4 b8 g4. |
}
\addlyrics {
- Girls and boys come | out to play,
- The | moon doth shine _ as | bright as day; |
+ Girls and boys come out to play,
+ The moon doth shine _ as bright as day;
c4.( bes8 a4. g8 fis4.) g8 | fis1
}
\addlyrics {
c4.( bes8 a4. g8 fis4.) g8 | fis1
}
\addlyrics {
- When I am | laid,
- am | laid __ in | earth,
+ When I am laid,
+ am laid __ in earth,
d4 d e | c2
}
\addlyrics {
d4 d e | c2
}
\addlyrics {
- A -- | way in a __ | man -- ger,
- no __ | crib for a | bed, __
+ A -- way in a __ man -- ger,
+ no __ crib for a bed,
c4.~ 8 d b | c8([ d]) b c d b | c8
}
\addlyrics {
c4.~ 8 d b | c8([ d]) b c d b | c8
}
\addlyrics {
- Lar -- go_al fac -- | to -- tum del -- la cit -- | tà
+ Lar -- go_al fac -- to -- tum del -- la cit -- tà
c8 | c8([ bes]) a a([ g]) f | f'4. b, | c4.~ 4
}
\addlyrics {
c8 | c8([ bes]) a a([ g]) f | f'4. b, | c4.~ 4
}
\addlyrics {
- Let | flee -- cy flocks the | hills a -- | dorn, __
+ Let flee -- cy flocks the hills a -- dorn, __
}
\relative c' {
\key f \major
}
\relative c' {
\key f \major
r8 | r4. r4 c8 | a'8([ g]) f f([ e]) d | e8([ d]) c bes'4
}
\addlyrics {
r8 | r4. r4 c8 | a'8([ g]) f f([ e]) d | e8([ d]) c bes'4
}
\addlyrics {
- Let | flee -- cy flocks the | hills a -- dorn,
+ Let flee -- cy flocks the hills a -- dorn,