From 0d7c7983141582b5ca33ad139a45315b9a480af4 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Tue, 24 Aug 2004 23:05:32 +0000 Subject: [PATCH] Deleted some accidentally double-pasted lines in lilypond-book.itely; began work on examples.itely. --- ChangeLog | 6 ++ Documentation/user/examples.itely | 77 +++++++++++++++++++++++++- Documentation/user/lilypond-book.itely | 3 - 3 files changed, 82 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4420f02f2d..ea52e31c1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-25 Graham Percival + + * Documentation/user/lilypond-book.itely: slight clean-up. + + * Documentation/user/examples.itely: began section. + 2004-08-25 Han-Wen Nienhuys * lily/slur-quanting.cc (score_extra_encompass): avoid other slurs diff --git a/Documentation/user/examples.itely b/Documentation/user/examples.itely index 1c057b67f3..08a23de471 100644 --- a/Documentation/user/examples.itely +++ b/Documentation/user/examples.itely @@ -1,4 +1,79 @@ @node Example templates @chapter Example templates -[TODO] +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 + + + + + diff --git a/Documentation/user/lilypond-book.itely b/Documentation/user/lilypond-book.itely index a10a8ebe7d..0f14bda4e7 100644 --- a/Documentation/user/lilypond-book.itely +++ b/Documentation/user/lilypond-book.itely @@ -426,9 +426,6 @@ documents are composed from small @file{.ly} files in this way: @{ c'4 @} @end example -@item relative, relative=@var{N} -uses relative octave mode. By default, notes are specified relative -to middle C. The optional integer argument specifies the octave of the @item relative, relative=@var{N} uses relative octave mode. By default, notes are specified relative to middle C. The optional integer argument specifies the octave of the -- 2.39.2