@c -*- coding: utf-8; mode: texinfo; -*-
@node Example templates
-@chapter Example templates
+@appendix 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
* Vocal ensembles::
* Ancient notation templates::
* Jazz combo::
-* Other templates::
* Lilypond-book templates::
@end menu
@node Single staff
-@section Single staff
-@subsection Notes only
+@appendixsec Single staff
+@appendixsubsec Notes only
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,
}
@end lilypond
-@subsection Notes and lyrics
+@appendixsubsec Notes and lyrics
The next example demonstrates a simple melody with lyrics. Cut and
paste, add notes, then words for the lyrics. This example turns off
}
@end lilypond
-@subsection Notes and chords
+@appendixsubsec Notes and chords
Want to prepare a lead sheet with a melody and chords? Look no further!
}
@end lilypond
-@subsection Notes, lyrics, and chords.
+@appendixsubsec Notes, lyrics, and chords.
This template allows you to prepare a song with melody, words, and chords.
@end lilypond
@node Piano templates
-@section Piano templates
-@subsection Solo piano
+@appendixsec Piano templates
+@appendixsubsec Solo piano
Here is a simple piano staff.
}
@end lilypond
-@subsection Piano and melody with lyrics
+@appendixsubsec Piano and melody with lyrics
Here is a typical song format: one staff with the melody and lyrics, with
piano accompaniment underneath.
@end lilypond
-@subsection Piano centered lyrics
+@appendixsubsec Piano centered lyrics
Instead of having a full staff for the melody and lyrics, you can place
the lyrics between the piano staff (and omit the separate melody staff).
@end lilypond
-@subsection Piano centered dynamics
+@appendixsubsec Piano centered dynamics
Many piano scores have the dynamics centered between the two
staffs. This requires a bit of tweaking to implement, but
@node String quartet
-@section String quartet
-@subsection String quartet
+@appendixsec String quartet
+@appendixsubsec String quartet
This template demonstrates a string quartet. It also uses a @code{\global}
section for time and key signatures.
}
@end lilypond
-@subsection String quartet parts
+@appendixsubsec String quartet parts
The previous example produces a nice string quartet, but what if you
needed to print parts? This template demonstrates how to use the
%%%%% vn1.ly
\version "2.7.39"
\include "piece.ly"
-\score {
+\score {
\keepWithTag #'vn1 \music
\layout { }
}
%%%%% vn2.ly
\version "2.7.39"
\include "piece.ly"
-\score {
+\score {
\keepWithTag #'vn2 \music
\layout { }
}
%%%%% vla.ly
\version "2.7.39"
\include "piece.ly"
-\score {
+\score {
\keepWithTag #'vla \music
\layout { }
}
%%%%% vlc.ly
\version "2.7.39"
\include "piece.ly"
-\score {
+\score {
\keepWithTag #'vlc \music
\layout { }
}
@node Vocal ensembles
-@section Vocal ensembles
+@appendixsec Vocal ensembles
-@subsection SATB vocal score
+@appendixsubsec SATB vocal score
Here is a standard four-part SATB vocal score. With larger ensembles,
it's often useful to include a section which is included in all
@end lilypond
-@subsection SATB vocal score and automatic piano reduction
+@appendixsubsec SATB vocal score and automatic piano reduction
This template adds an automatic piano reduction to the SATB vocal
score. This demonstrates one of the strengths of LilyPond -- you
@c bad node name to avoid node name confict
@node Ancient notation templates
-@section Ancient notation templates
+@appendixsec Ancient notation templates
-@subsection Transcription of mensural music
+@appendixsubsec Transcription of mensural music
When transcribing mensural music, an incipit at the beginning of the
piece is useful to indicate the original key and tempo. While today
@end lilypond
+@appendixsubsec Gregorian transcription template
+
+This example demonstrates how to do modern transcription of Gregorian
+music. Gregorian music has no measure, no stems; it uses only half and
+quarter noteheads, and special marks, indicating rests of different length.
+
+@lilypond[quote,verbatim,ragged-right]
+\include "gregorian-init.ly"
+\version "2.8.0"
+
+chant = \relative c' {
+ \set Score.timing = ##f
+ f4 a2 \divisioMinima
+ g4 b a2 f2 \divisioMaior
+ g4( f) f( g) a2 \finalis
+}
+
+verba = \lyricmode {
+ Lo -- rem ip -- sum do -- lor sit a -- met
+}
+
+\score {
+ \new Staff <<
+ \new Voice = "melody" {
+ \chant
+ }
+ \new Lyrics = "one" \lyricsto melody \verba
+ >>
+
+ \layout {
+ \context {
+ \Staff
+ \remove "Time_signature_engraver"
+ \remove "Bar_engraver"
+ \override Stem #'transparent = ##t
+ }
+ \context {
+ \Voice
+ \override Stem #'length = #0
+ }
+ \context {
+ \Score
+ barAlways = ##t
+ }
+ }
+}
+@end lilypond
+
@node Jazz combo
-@section Jazz combo
+@appendixsec Jazz combo
This is a much more complicated template, for a jazz ensemble. Note that all
instruments are notated in @code{\key c \major}. This refers to the key in
composer = "Me"
meter = "moderato"
piece = "Swing"
- tagline = "LilyPond example file by Amelie Zapf,
- Berlin 07/07/2003"
+ tagline = \markup {
+ \column {
+ "LilyPond example file by Amelie Zapf,"
+ "Berlin 07/07/2003"
+ }
+ }
texidoc = "Jazz tune for combo
(horns, guitar, piano, bass, drums)."
}
\global
\set Staff.instrument = #"Trumpet"
\clef treble
- \new Staff <<
+ <<
\trpt
>>
}
\global
\set Staff.instrument = #"Alto Sax"
\clef treble
- \new Staff <<
+ <<
\alto
>>
}
\global
\set Staff.instrument = #"Bari Sax"
\clef treble
- \new Staff <<
+ <<
\bari
>>
}
\global
\set Staff.instrument = #"Trombone"
\clef bass
- \new Staff <<
+ <<
\tbone
>>
}
\global
\set Staff.instrument = #"Guitar"
\clef treble
- \new Staff <<
+ <<
\gtr
>>
}
\clef treble
\global
\set Staff.midiInstrument = "acoustic grand"
- \new Staff <<
+ <<
\new Voice = "one" \rhUpper
\new Voice = "two" \rhLower
>>
\clef bass
\global
\set Staff.midiInstrument = "acoustic grand"
- \new Staff <<
+ <<
\new Voice = "one" \lhUpper
\new Voice = "two" \lhLower
>>
}
piano = {
- \new PianoStaff <<
+ <<
\set PianoStaff.instrument = #"Piano"
\new Staff = "upper" \PianoRH
\new Staff = "lower" \PianoLH
\global
\set Staff.instrument = #"Bass"
\clef bass
- \new Staff <<
+ <<
\Bass
>>
}
}
@end lilypond
-@node Other templates
-@section Other templates
-@subsection All headers
+@ignore
+
+This isn't very useful, and only duplicates material in
+"global issues". And if this info changes, this section often
+gets forgotten.
+
+@no de Other templates
+@se ction Other templates
+@su bsection All headers
This template displays all available headers. Some of them are only
used in the Mutopia project; they don't affect the printed output at
"Petr Tchaikowski" on your music.
@ The `line-width' is for \header.
-@lilypond[quote,verbatim,ragged-right,line-width]
+@li lypond[quote,verbatim,ragged-right,line-width]
\version "2.7.39"
\header {
dedication = "dedication"
}
}
@end lilypond
-
-@subsection Gregorian template
-
-This example demonstrates how to do modern transcriptions of Gregorian
-music. Gregorian music has no measure, no stems; it uses only half and
-quarter notes, and two types of barlines, a short one indicating a rest,
-and a second one indicating a breath mark.
-
-@lilypond[quote,verbatim,ragged-right]
-barOne = { \once \override Staff.BarLine #'bar-size = #2
- \bar "|" }
-barTwo = { \once \override Staff.BarLine #'extra-offset = #'(0 . 2)
- \once \override Staff.BarLine #'bar-size = #2
- \bar "|" }
-chant = \relative c' {
- \set Score.timing = ##f
- \override Staff.Stem #'transparent = ##t
-
- f4 a2 \barTwo
- g4 a2 f2 \barOne
- g4( f) f( g) a2
-}
-\score {
- \chant
- \layout{ }
- \midi { \tempo 4=60 }
-}
-@end lilypond
+@end ignore
@node Lilypond-book templates
-@section Lilypond-book templates
+@appendixsec Lilypond-book templates
These templates are for use with @code{lilypond-book}. If you're not familiar
with this program, please refer to @ref{LilyPond-book}.
-@subsection LaTeX
+@appendixsubsec LaTeX
You can include LilyPond fragments in a LaTeX document.
\end@{document@}
@end example
-@subsection Texinfo
+@appendixsubsec Texinfo
You can include LilyPond fragments in Texinfo; in fact, this entire manual
is written in Texinfo.