|
|
GNU LilyPondWelcome to the home of the GNU Music Typesetter |
||||||||||
|
Node:More movements, Next:A piano excerpt, Previous:Lyrics and chords, Up:Tutorial More movements[FIXME: merge here with, or move this to: Other ways to run LilyPond] You probably ran
For example, consider the following file ( \version "1.4.0"
\header {
title = "Two miniatures"
tagline = "small is beautiful"
}
#(set! point-and-click line-column-location)
\paper { linewidth = -1.0 }
\score {
\notes { c'4 d'4 }
\header {
opus = "Opus 1."
piece = "Up" }
}
\score {
\notes { d'4 c'4 }
\header {
opus = "Opus 2."
piece = "Down" }
}
The titling in this manual was not generated by ly2dvi, so we can't exactly show what it would look like, but the result should resemble this: Two miniatures
Opus 1.
Up
Opus 2.
Down
This file is produced by ly2dvi in a few stages, with the help of text
formatting tools. LilyPond produces two output files,
Next, now we'll look at the example line by line to explain new things. \version "1.4.0"Lilypond and its language are still under development, and occasionally, details of the syntax are changed. This fragment indicates for which version the input file was written. When you compile this file, the version number will be checked, and you will get a warning when the file is too old. This version number is also used by the \header {
title = "Two miniatures" }
This sets the titling information for the entire file.
tagline = "small is beautiful"A signature line is printed at the bottom of the last page. This signature is produced from the tagline field of
\header. Many people find the default "Lily was here,
version number" too droll. If that is the case, assign
something else to tagline, as shown above.
#(set! point-and-click line-column-location) This piece of Scheme code sets the Scheme variable
Editing input files can be quite complicated if you're working with large files: if you're digitizing existing music, you have to synchronize the .ly file, the sheet music on your lap and the sheet music on the screen. The point-and-click mechanism makes it easy to find the origin of an error in the LY file: when you view the file with Xdvi and click on a note, your editor will jump to the spot where that note was entered. For more information, see Point and click. \paper {
The linewidth = -1.0 } The variable \score {
\notes { c'4 d'4 }
In previous examples, notes were specified in relative octaves,
i.e. each note was put in the octave that is closest to its
predecessor. Besides relative, there is also absolute octave
specification, which you get when you don't specify When you're copying music from existing sheet music, relative octaves are probably the easiest to use: it's less typing work and errors are easily spotted. However, if you write LilyPond input directly, either by hand (i.e. composing) or by computer, absolute octaves may be easier to use. \header {
The opus = "Opus 1."
piece = "Up" }
For example, the Opus number is put at the right, and the piece string
will be at the left.
|
||||||||||
|
Go back to index of LilyPond.
Please send GNU LilyPond questions and comments to lilypond-user@gnu.org. Please send comments on these web pages to lilypond@packages.debian.org Copyright (c) 1997--2001 Han-Wen Nienhuys and Jan Nieuwenhuizen. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. |
|||||||||||
This page was built from LilyPond-1.4.12 (stable-branch) by