soprano part).
@example
-\version "2.7.39"
+\version "2.9.13"
melody = \relative c' @{
\clef treble
\key c \major
\new Lyrics \lyricsto "one" \text
>>
\layout @{ @}
- \midi @{ \tempo 4=60 @}
+ \midi @{ @}
@}
@end example
Now we want to add a cello part. Let's look at the ``Notes only'' example:
@example
-\version "2.7.39"
+\version "2.9.13"
melody = \relative c' @{
\clef treble
\key c \major
a4 b c d
@}
-
+
\score @{
\new Staff \melody
\layout @{ @}
-\midi @{ \tempo 4=60 @}
+\midi @{ @}
@}
@end example
@code{\layout} or @code{\midi}.
If we simply cut and paste the @code{melody} section, we would end up with
-two @code{melody} sections. So let's rename them. We'll call the one
-for the soprano @code{sopranoMusic}, and the one for the cello can be
-called @code{celloMusic}. While we're doing this, let's rename @code{text}
+two @code{melody} sections. So let's rename them. We'll call the section
+for the soprano @code{sopranoMusic} and the section for the cello
+@code{celloMusic}. While we're doing this, let's rename @code{text}
to be @code{sopranoLyrics}. Remember to rename both instances of all
these names -- both the initial definition (the
@code{melody = relative c' @{ } part) and the name's use (in the
notes.
@example
-\version "2.7.39"
+\version "2.9.13"
sopranoMusic = \relative c' @{
\clef treble
\key c \major
\new Lyrics \lyricsto "one" \sopranoLyrics
>>
\layout @{ @}
- \midi @{ \tempo 4=60 @}
+ \midi @{ @}
@}
@end example
@noindent
underneath the soprano stuff. We also need to add @code{<<} and
@code{>>} around the music -- that tells LilyPond that there's
-more than one thing (in this case staff) happening at once. The
+more than one thing (in this case, @code{Staff}) happening at once. The
@code{\score} looks like this now
@example
\new Staff \celloMusic
>>
\layout @{ @}
- \midi @{ \tempo 4=60 @}
+ \midi @{ @}
@}
@end example
easily fixed. Here's the complete soprano and cello template.
@lilypond[quote,verbatim,ragged-right]
-\version "2.7.39"
+\version "2.9.13"
sopranoMusic = \relative c' {
\clef treble
\key c \major
\new Staff \celloMusic
>>
\layout { }
- \midi { \tempo 4=60 }
+ \midi { }
}
@end lilypond
\score @{
@{ c'4 a b c' @}
\layout @{ @}
- \paper @{ @}
\midi @{ @}
\header @{ @}
@}
that there @emph{is} no mystery. This line explains it
all:
-@example
-A @code{\score} must begin with a single music expression.
-@end example
+@quotation
+@emph{A @code{\score} must begin with a single music expression.}
+@end quotation
@noindent
You may find it useful to review