|
|
GNU LilyPond-- -- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
More basicsWe continue with the introduction of the remaining musical constructs.
Normal rests are entered just like notes with the name "
To raise a note by an octave, add a high quote
A tie is created by entering a tilde "
The key signature is set with the command "
This example shows notes, ties, octave marks, and rests in action.
There are some interesting points to note in this example. Accidentals (sharps and flats) don't have to be marked explicitly: you just enter the note name, and LilyPond determines whether or not to print an accidental. Bar lines and beams are drawn automatically. LilyPond calculates line breaks for you; it doesn't matter where you make new lines in the source file. Finally, the order of time, key and clef changes is not relevant: lilypond will use standard notation conventions for ordering these items. The example also indicates that a piece of music written in a high register needs lots of quotes. This makes the input less readable, and is also a potential source of errors. The solution is to use "relative octave" mode. In practice, this is
the most convenient way to copy existing music. To use relative mode,
add
You can make larger intervals by adding octavation quotes. Note that
quotes or commas do not determine the absolute height of a note;
the height of a note is relative to the previous one.
For example:
Here's an example of the difference between relative mode and "normal" (non-relative) mode:
SUMMARY The following table summarizes the syntax learned so far in this section.
A slur is drawn across many notes, and indicates bound articulation
(legato). The starting note and ending note are marked with a
"
If you need two slurs at the same time (one for articulation, one for
phrasing), you can also make a phrasing slur with
Beams are drawn automatically, but if you don't like the choices, you
can enter beams by hand. Surround the notes to be grouped with
To print more than one staff, each piece of music that makes up a staff
is marked by adding
In this example, We can now typeset a melody with two staves:
Notice that the time signature is specified in one melody staff only (the top staff), but is printed on both. LilyPond knows that the time signature should be the same for all staves. Common accents can be added to a note using
Dynamic signs are made by adding the markings to the note:
Crescendi and decrescendi are started with the commands
Chords can be made by surrounding notes with
You can combine beams and ties with chords. Beam and tie markings must be placed outside the chord markers:
When you want to combine chords with slurs and dynamics, technical
detail crops up: you have type these commands next to the notes, which
means that they have to be inside the
There is one caution when using chords: if you use a chord at the very beginning of the piece, LilyPond might not understand what you want:
If you have a piece that begins with a chord, you must explicitly
state that the notes of the chord are to be put on the same staff, in
the same voice. This is done by specifying
SUMMARY
Now you know the basic ingredients of a music file, so this is the right moment to try your at hand at doing it yourself: try typing some simple examples, and experiment a little. When you're comfortable with the basics, you might want to read the rest of this chapter. It continues in tutorial-style, but it is much more in-depth, dealing with more advanced topics such as lyrics, chords, orchestral scores and parts, fine tuning of output, polyphonic music, and integrating text and music. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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 (address unknown) Copyright (c) 1997--2002 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.6.6 (stable-branch) by