Guide, node Updating translation committishes..
@end ignore
-@c \version "2.19.2"
+@c \version "2.19.21"
@ignore
Tutorial guidelines: (different from policy.txt!)
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'1 | e1 | c2. c' | g4 c g e | c4 r r2 |
+}
@end lilypond
+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}.
@end lilypond
This shorthand may be useful in other places where the rhythm changes
-with an unchanging pitch, but remember a bare duration will attach to
-the preceding pitch, making a single note, if only white space
-separates them.
-
+with an unchanging pitch, but remember that a bare pitch followed by a
+space and a bare duration will be interpreted as a single note. In
+other words, @code{c4 a 8 8} would be interpreted as @code{c4 a8 a8},
+not as @code{c4 a4 a8 a8}. Write instead @code{c4 a4 8 8 }.
@node Slurs
@unnumberedsubsubsec Slurs
notes) are combined simultaneously:
@lilypond[verbatim,quote]
-\relative c'' {
+\relative {
<<
- { a2 g }
+ { a'2 g }
{ f2 e }
{ d2 b }
>>
out on a single staff.
@lilypond[verbatim,quote]
-\relative c'' {
- c2 <<c e>> |
+\relative {
+ c''2 <<c e>> |
<< { e2 f } { c2 <<b d>> } >> |
}
@end lilypond
and @code{>>}:
@lilypond[verbatim,quote]
-\relative c'' {
+\relative {
<<
- \new Staff { \clef "treble" c4 }
+ \new Staff { \clef "treble" c''4 }
\new Staff { \clef "bass" c,,4 }
>>
}
than polyrhythmic scores.
@lilypond[verbatim,quote]
-\relative c'' {
+\relative {
<<
- \new Staff { \clef "treble" \key d \major \time 3/4 c4 }
+ \new Staff { \clef "treble" \key d \major \time 3/4 c''4 }
\new Staff { \clef "bass" c,,4 }
>>
}
Here is a small example:
@lilypond[verbatim,quote]
-\relative c'' {
+\relative {
\new PianoStaff <<
- \new Staff { \time 2/4 c4 e | g g, | }
+ \new Staff { \time 2/4 c''4 e | g g, | }
\new Staff { \clef "bass" c,,4 c' | e c | }
>>
}
rhyme, @notation{Girls and boys come out to play}:
@lilypond[verbatim,quote]
-\relative c'' {
+\relative {
\key g \major
\time 6/8
- d4 b8 c4 a8 | d4 b8 g4
+ d''4 b8 c4 a8 | d4 b8 g4
}
@end lilypond
@lilypond[verbatim,quote]
<<
- \relative c'' {
+ \relative {
\key g \major
\time 6/8
- d4 b8 c4 a8 | d4 b8 g4
+ d''4 b8 c4 a8 | d4 b8 g4
}
\addlyrics {
- Girls and boys come | out to play,
+ Girls and boys come out to play,
}
>>
@end lilypond
@lilypond[verbatim,quote]
<<
- \relative c'' {
+ \relative {
\key g \major
\time 6/8
- d4 b8 c4 a8 | d4 b8 g4 g8 |
+ d''4 b8 c4 a8 | d4 b8 g4 g8 |
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;
}
>>
@end lilypond
-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
@lilypond[verbatim,quote]
<<
- \relative c'' {
+ \relative {
\key g \major
\time 6/8
- d4 b8 c4 a8 | d4 b8 g4 g8 |
+ d''4 b8 c4 a8 | d4 b8 g4 g8 |
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;
}
>>
@end lilypond
@lilypond[verbatim,quote]
<<
- \relative c'' {
+ \relative {
\key g \major
\time 6/8
- d4 b8 c4 a8 | d4 b8 g4 g8 |
+ d''4 b8 c4 a8 | d4 b8 g4 g8 |
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;
}
>>
@end lilypond
@lilypond[verbatim,quote]
<<
- \relative c'' {
+ \relative {
\key g \major
\time 6/8
- d4 b8 c4 a8 | d4 b8 g4 g8 |
+ d''4 b8 c4 a8 | d4 b8 g4 g8 |
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;
}
>>
@end lilypond
@lilypond[verbatim,quote]
<<
- \relative c'' {
+ \relative {
\key g \minor
\time 3/2
- g2 a bes | bes2( a) b2 |
+ g'2 a bes | bes2( a) b2 |
c4.( bes8 a4. g8 fis4.) g8 | fis1
}
\addlyrics {
- When I am | laid,
- am | laid __ in | earth,
+ When I am laid,
+ am laid __ in earth,
}
>>
@end lilypond
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,
}
>>
@end lilypond
@c but the example is long enough to avoid looking strange.
@lilypond[verbatim,quote,noragged-right]
<<
- \relative c' {
+ \relative {
\clef "bass"
\key c \major
\time 6/8
- c4.~ 8 d b | c8([ d]) b c d b | c8
+ c'4.~ 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à
}
>>
@end lilypond
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
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,
}
>>
@end lilypond
@lilypond[verbatim,quote]
violin = \new Staff {
- \relative c'' {
- a4 b c b
+ \relative {
+ a'4 b c b
}
}
cello = \new Staff {
- \relative c {
+ \relative {
\clef "bass"
e2 d
}
easier to read and type:
@lilypond[verbatim,quote]
-\relative c'' {
+\relative {
\key a \major
\time 6/8
- cis8. d16 cis8 e4 e8 |
+ cis''8. d16 cis8 e4 e8 |
b8. cis16 b8 d4 d8 |
}
@end lilypond
inner relative sections are independent:
@lilypond[verbatim,quote]
-\relative c { c'4 \relative c'' { f g } c }
+\relative { c'4 \relative { f'' g } c }
@end lilypond
@funindex \absolute
it from becoming part of the relative music:
@lilypond[verbatim,quote]
-\relative c { c'4 \absolute { f'' g'' } c }
+\relative { c'4 \absolute { f'' g'' } c }
@end lilypond
@node After the tutorial