version that you are working on. See TRANSLATION for details.
@end ignore
-@node Example templates
-@appendix Example templates
+@node Templates
+@appendix Templates
This section of the manual contains templates with the LilyPond score
already set up for you. Just add notes, run LilyPond, and enjoy
add notes, and you're finished!
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
melody = \relative c' {
\clef treble
\key c \major
line.
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
melody = \relative c' {
\clef treble
\key c \major
Want to prepare a lead sheet with a melody and chords? Look no further!
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
melody = \relative c' {
\clef treble
\key c \major
This template allows you to prepare a song with melody, words, and chords.
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
melody = \relative c' {
\clef treble
\key c \major
Here is a simple piano staff.
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
upper = \relative c'' {
\clef treble
\key c \major
piano accompaniment underneath.
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
melody = \relative c'' {
\clef treble
\key c \major
the lyrics between the piano staff (and omit the separate melody staff).
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
upper = \relative c'' {
\clef treble
\key c \major
@appendixsubsec Piano centered dynamics
Many piano scores have the dynamics centered between the two
-staffs. This requires a bit of tweaking to implement, but
+staves. This requires a bit of tweaking to implement, but
since the template is right here, you don't have to do the
tweaking yourself.
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
upper = \relative c'' {
\clef treble
\key c \major
\consists "Output_property_engraver"
\override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
+ \override DynamicLineSpanner #'Y-offset = #0
pedalSustainStrings = #'("Ped." "*Ped." "*")
pedalUnaCordaStrings = #'("una corda" "" "tre corde")
\override TextScript #'font-size = #2
\override TextScript #'font-shape = #'italic
- \override DynamicText #'extra-offset = #'(0 . 2.5)
- \override Hairpin #'extra-offset = #'(0 . 2.5)
\consists "Skip_event_swallow_translator"
\context {
\PianoStaff
\accepts Dynamics
- \override VerticalAlignment #'forced-distance = #7
}
}
}
section for time and key signatures.
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
global= {
\time 4/4
@verbatim
%%%%% piece.ly
-\version "2.9.13"
+\version "2.11.23"
global= {
\time 4/4
%%%%% score.ly
-\version "2.9.13"
+\version "2.11.23"
\include "piece.ly"
#(set-global-staff-size 14)
\score {
%%%%% vn1.ly
-\version "2.9.13"
+\version "2.11.23"
\include "piece.ly"
\score {
\keepWithTag #'vn1 \music
%%%%% vn2.ly
-\version "2.9.13"
+\version "2.11.23"
\include "piece.ly"
\score {
\keepWithTag #'vn2 \music
%%%%% vla.ly
-\version "2.9.13"
+\version "2.11.23"
\include "piece.ly"
\score {
\keepWithTag #'vla \music
%%%%% vlc.ly
-\version "2.9.13"
+\version "2.11.23"
\include "piece.ly"
\score {
\keepWithTag #'vlc \music
always the same for all parts.
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
global = {
\key c \major
\time 4/4
apply to the piano reduction.
@lilypond[quote,verbatim,ragged-right]
-\version "2.9.13"
+\version "2.11.23"
global = {
\key c \major
\time 4/4
and @code{alignBelowContext}.
@lilypond[quote,verbatim,ragged-right]
-\version "2.10.0"
+\version "2.11.23"
global = {
\key c \major
\time 4/4
staves rather than on the staves.
@lilypond[quote,verbatim,line-width=11.0\cm]
-\version "2.9.13"
+\version "2.11.23"
global = {
\set Score.skipBars = ##t
\override Voice.NoteHead #'style = #'default
\override Voice.Rest #'style = #'default
- % FIXME: setting printKeyCancellation back to #t must not
+ % TODO: setting printKeyCancellation back to #t must not
% occur in the first bar after the incipit. Dto. for forceClef.
% Therefore, we need an extra \skip.
\skip 1*1
\override Slur #'transparent = ##t
% Comment in the below "\remove" command to allow line
- % breaking also at those barlines where a note overlaps
+ % breaking also at those bar lines where a note overlaps
% into the next bar. The command is commented out in this
% short example score, but especially for large scores, you
% will typically yield better line breaking and thus improve
@lilypond[quote,verbatim,ragged-right]
\include "gregorian-init.ly"
-\version "2.9.13"
+\version "2.11.23"
chant = \relative c' {
\set Score.timing = ##f
@c - maybe ask Amelie Zapf to clean it up, or whether I should just
@c make whatever changes I feel like.
-@c FIXME: produces a warning ; key change merge.
+@c TODO: produces a warning ; key change merge.
@c The `line-width' argument is for the \header.
@lilypond[quote,verbatim,ragged-right,line-width]
-\version "2.9.13"
+\version "2.11.23"
\header {
title = "Song"
subtitle = "(tune)"
@ The `line-width' is for \header.
@li lypond[quote,verbatim,ragged-right,line-width]
-\version "2.9.13"
+\version "2.11.23"
\header {
dedication = "dedication"
title = "Title"
@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}.
+with this program, please refer to @rprogram{LilyPond-book}.
@appendixsubsec LaTeX