LilyPond input that was used to generate that image.
Try it on this image
@lilypond[quote,raggedright,relative=2]
- c-\markup { \bold \huge { Click here. } }
+c-\markup { \bold \huge { Click here. } }
@end lilypond
@end ifhtml
@end lilypond
If you do not specify a @rglos{duration}, the duration last entered is
-used; the duration of the first note defaults to a quarter
-@c FIXME: let's omit the first note rule?
-@c The first note will be a quarter
+used for the next notes. The duration of the first note in input
+defaults to a quarter
@example
a a8 a a2 a
@end lilypond
-Rests are entered just like notes, but with the name ``@code{r}''
+Rests are entered just like notes, but with the name @samp{r}
@cindex rests
@example
r2 r4 r8 r16
@end example
-@lilypond[quote,fragment]
+@lilypond[quote,notime]
\set Score.timing = ##f
-\set Staff.Clef = \turnOff
-\set Staff.TimeSignature = \turnOff
-r2 r4 r8 r16
-s16_" "
+r2 r4 r8 r16 s16_" "
@end lilypond
@separate
s16_" "
@end lilypond
-To recognize names like @code{c} and @code{d} as pitches, they have to
+To recognize names like @samp{c} and @samp{d} as pitches, they have to
be entered inside a so-called @code{\notes} block. This block is
formed by enclosing notes and commands are enclosed in curly braces
-@code{@{ @dots{} @}} and adding the keyword @code{\notes} before the
-opening brace
+@code{@{@tie{}@dots{}@tie{}@}} and adding the keyword @code{\notes} before
+the opening brace
@example
\notes @{
@}
@end example
+@noindent
and the music will be converted to printable output.
@lilypond[quote,noindent]
For more elaborate information on
+@quotation
@table @asis
-@item Entering pitches and durations
+@item Entering pitches and durations
see
@ref{Pitches} and @ref{Durations}.
@item Clefs
@item Rests
see @ref{Rests}.
@item Time signatures and other timing commands
-see @ref{Time signature}.
-@end table
+see @ref{Time signature}.
+@end table
+@end quotation
@node Running LilyPond
Now processing: `/home/fred/ly/test.ly'
Parsing...
Interpreting music...[1]
- @emph{ ... more interesting stuff ... }
+@emph{ ... more interesting stuff ... }
PDF output to `test.pdf'...
DVI output to `test.dvi'...
@end example
@end lilypond
@cindex key signature, setting
-The key signature is set with the command ``@code{\key}'', followed by
+The key signature is set with the command @samp{\key}, followed by
a pitch and @code{\major} or @code{\minor}
@example
\key d \major
@end example
The code @code{d} does not mean ``print a black dot just below the
-staff.'' Rather, it means: ``a note with pitch D-natural.'' In the key
+staff.'' Rather, it means: ``a note with pitch D-natural.'' In the key
of A-flat, it does get an accidental
@lilypond[quote,fragment]
For more information on
-
+
@table @asis
@item Accidentals
see @ref{Accidentals}
@section Entering ties
@cindex tie
-A tie is created by adding a tilde ``@code{~}'' to the first note
+A tie is created by adding a tilde @samp{~} to the first note
being tied
@lilypond[quote,fragment,verbatim,relative=3]
g4~ g a2~ a4
Enclosing group of notes in braces creates a new music
expression
-
+
@lilypond[quote,verbatim,relative=3]
{ a4 g4 }
@end lilypond
music expression is formed by enclosing expressions in @code{<<} and
@code{>>}. In the following example, three sequences (all containing
two notes) are combined simultaneously
-
+
@lilypond[quote,verbatim,relative=3]
<<
{ a4 g }
1
1 + 2
-
+
(1 + 2) * 3
-
+
((1 + 2) * 3) / (4 * 5)
@end example
@cindex expression
@cindex accents
@cindex staccato
-Common accents can be added to a note using a dash (`@code{-}') and a
+Common accents can be added to a note using a dash (@samp{-}) and a
single character
@lilypond[quote,verbatim,relative=2]
c-. c-- c-> c-^ c-+ c-_
@cindex fingering
Similarly, fingering indications can be added to a note using a dash
-(`@code{-}') and the digit to be printed
+(@samp{-}) and the digit to be printed
@c
@lilypond[quote,verbatim,relative=2]
- c-3 e-5 b-2 a-1
+c-3 e-5 b-2 a-1
@end lilypond
A slur is a curve drawn across many notes, and indicates legato
articulation. The starting note and ending note are marked with a
-``@code{(}'' and a ``@code{)}'' respectively
+@samp{(} and a @samp{)}, respectively
@lilypond[quote,fragment,relative=2,verbatim]
d4( c16)( cis d e c cis d e)( d4)
For more information on
@table @asis
@item Fingering
- see @ref{Fingering instructions}
+see @ref{Fingering instructions}
@item Articulations
- see @ref{Articulations}
+see @ref{Articulations}
@item Slurs
- see @ref{Slurs}
+see @ref{Slurs}
@item Phrasing slurs
- see @ref{Phrasing slurs}
+see @ref{Phrasing slurs}
@item Dynamics
- see @ref{Dynamics}
+see @ref{Dynamics}
@item Fingering
@end table
keyword @code{\appoggiatura} or @code{\acciaccatura}
@cindex appoggiatura
@cindex acciaccatura
-
+
@lilypond[quote,relative=2,verbatim,fragment]
c4 \appoggiatura b16 c4
c4 \acciaccatura b16 c4
@example
% notes for twinkle twinkle follow
c4 c g' g a a
-
+
%@{
This line, and the notes below
are ignored, since they are in a
Lyrics are entered by separating each syllable with a space,
@example
- I want to break free
+I want to break free
@end example
To prevent certain words (for example ``as'') as being read as a
@code{\lyrics}. In @code{\lyrics} mode, all words are read as lyric
syllables.
@example
- \lyrics @{ I want to break free @}
+\lyrics @{ I want to break free @}
@end example
@noindent
The lyrics can be set to these notes, combining both with the
@code{\lyricsto} keyword
@example
- \lyricsto "@var{name}" \new Lyrics @dots{}
+\lyricsto "@var{name}" \new Lyrics @dots{}
@end example
where @var{name} identifies to which melody the lyrics should be
aligned. In this case, there is only one melody, so we can leave it
@cindex Lead sheets
@cindex chords
@cindex chord names
-
+
In popular music, it is common to denote accompaniment as chord-names.
Such chords can be entered like notes,
context
@lilypond[quote,verbatim]
- \new ChordNames \chords { c2 f4.:m g4.:maj7 gis8:dim7 }
+\new ChordNames \chords { c2 f4.:m g4.:maj7 gis8:dim7 }
@end lilypond
@cindex lead sheet
but now this entire expression must be interpreted as a
@code{PianoStaff}
@example
- \new PianoStaff << \new Staff @dots{} >>
+\new PianoStaff << \new Staff @dots{} >>
@end example
Here is a full-fledged example
The line
@example
- \include "horn-music.ly"
+\include "horn-music.ly"
@end example
@noindent