@node Example templates @chapter Example templates This section of the manual contains templates with the LilyPond score already set up for you. Just add notes, run LilyPond, and enjoy beautiful printed scores! @menu * Single staff:: @end menu @c more sections to come soon. @node Single staff @section Single staff The first example gives you a staff with notes, suitable for a solo instrument or a melodic fragment. Cut and paste this into a file, add notes, and you're finished! @lilypond[verbatim] melody = \relative c' { \clef treble \key c \major \time 4/4 a4 b c d } \score{ \new Staff \melody \paper { } \midi { \tempo 4=60 } } @end lilypond @* The next example demonstrates a simple melody with lyrics. Cut and paste, add notes, then words for the lyrics. This example turns off automatic beaming, which is common for vocal parts. If you want to use automatic beaming, you'll have to change or comment out the relevant line. @lilypond[verbatim] melody = \relative c' { \clef treble \key c \major \time 4/4 a4 b c d } text = \lyrics { Aaa Bee Cee Dee } \score{ << \context Voice = one { \set Staff.autoBeaming = ##f \melody } \lyricsto "one" \new Lyrics \text >> \paper { } \midi { \tempo 4=60 } } @end lilypond