]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/user/fundamental.itely
Spelling fixes from Reinhold, thanks!
[lilypond.git] / Documentation / user / fundamental.itely
index 88866e26751bb494f67256b340e29c8d6851ea61..c2b0534012f4591034201e2915eff2daf3ec64d2 100644 (file)
@@ -40,7 +40,7 @@ description of the input format, see @ruser{File structure}.
 A basic example of a lilypond input file is
 
 @example
-\version "2.11.38"
+\version @w{"@version{}"}
 \score @{
   @var{...compound music expression...}  % all the music goes here!
   \header @{ @}
@@ -131,9 +131,13 @@ MIDI output respectively.  They are described fully in the
 Notation Reference -- @ruser{Score layout} and
 @ruser{Creating MIDI files}.
 
-The @code{\book} command allows
-several @code{\score} blocks to be combined into one output.
-If there are several @code{\book} blocks each one produces a
+You may code multiple @code{\score} blocks.  Each will be
+treated as a separate score, but they will be all combined into
+a single output file.  A @code{\book} command is not necessary
+-- one will be implicitly created.  However, if you would like
+separate output files from one @code{.ly} file then the
+@code{\book} command should be used to separate the different
+sections: each @code{\book} block will produce a
 separate output file.  For details see @ruser{Multiple scores
 in a book}.
 
@@ -342,7 +346,7 @@ three notes:
 @noindent
 Note that the size of the clef is the same as a clef printed
 following a clef change -- slightly smaller than the clef
-at the begining of the line.  This is usual for clefs printed
+at the beginning of the line.  This is usual for clefs printed
 in the middle of a line.
 
 The ossia section may be placed above the staff
@@ -365,7 +369,7 @@ as follows:
 @end lilypond
 
 This example uses @code{\with}, which will be explained more 
-fully later.  It is a means of modifying the default behaviour
+fully later.  It is a means of modifying the default behavior
 of a single Staff.  Here it says that the new staff should be 
 placed above the staff called @qq{main} instead of the default 
 position which is below.
@@ -564,7 +568,7 @@ separately, like this:
 @end lilypond
 
 
-This example has just two voices, but the same contruct may be
+This example has just two voices, but the same construct may be
 used to encode three or more voices by adding more back-slash
 separators.
 
@@ -667,7 +671,7 @@ command at the start of each voice:
 \relative c' @{ noteE ... @}
 @end example
 
-Let us finally analyse the voices in a more complex piece of 
+Let us finally analyze the voices in a more complex piece of 
 music.  Here are
 the notes from the first two bars of the second of Chopin's
 Deux Nocturnes, Op 32.  This example will be used at later
@@ -868,7 +872,7 @@ markup, ties, slurs, and dynamics:
 
 @lilypond[quote,ragged-right,verbatim]
 \relative c'{
-  % Default behaviour or behaviour after \oneVoice
+  % Default behavior or behavior after \oneVoice
   c d8 ~ d e4 ( f g a ) b-> c
 }
 @end lilypond
@@ -988,7 +992,7 @@ as here:
 @funindex \shiftOnn
 @funindex \shiftOnnn
 
-Closely spaced notes in a chord, or notes occuring at the same
+Closely spaced notes in a chord, or notes occurring at the same
 time in different voices, are arranged in two, occasionally more,
 columns to prevent the note heads overlapping.  These are called
 note columns.  There are separate columns for each voice, and 
@@ -1184,14 +1188,14 @@ Within LilyPond, these rules and bits of information are grouped
 in @emph{Contexts}.  We have already met the 
 @code{Voice} context. 
 Others are the @code{Staff} and @code{Score} contexts.  
-Contexts are hierarchical to reflect the heirarchical nature of 
+Contexts are hierarchical to reflect the hierarchical nature of 
 a musical score.  
 For example: a @code{Staff} context can contain many 
 @code{Voice} contexts, and a @code{Score} context can 
 contain many @code{Staff} contexts.
 
 @quotation
-@image{context-example,5cm,,}
+@sourceimage{context-example,5cm,,}
 @end quotation
 
 Each context has the responsibility for enforcing some notation rules,
@@ -1223,7 +1227,7 @@ are also alternative staff and voice contexts, and contexts for
 lyrics, percussion, fret boards, figured bass, etc.
 
 The names of all context types are formed from one or more
-words, each word being capitalised and joined immediately to the 
+words, each word being capitalized and joined immediately to the 
 preceding word with no hyphen or underscore, e.g., 
 @code{GregorianTranscriptionStaff}.
 
@@ -1308,7 +1312,7 @@ operation of the engraver or the appearance of those elements
 in the printed score.
    
 Engravers all have compound names formed from words which
-describe their function.  Just the first word is capitalised, 
+describe their function.  Just the first word is capitalized, 
 and the remainder are joined to it with underscores.  Thus
 the @code{Staff_symbol_engraver} is responsible for creating the
 lines of the staff, the @code{Clef_engraver} determines and sets
@@ -1340,7 +1344,7 @@ the name, or vice versa.
 @item Staff_symbol_engraver
   @tab Engraves the five (by default) lines of the staff
 @item Stem_engraver
-  @tab Creates stems and single-stem tremulos
+  @tab Creates stems and single-stem tremolos
 @item Time_signature_engraver
   @tab Creates time signatures
 @end multitable
@@ -1585,7 +1589,7 @@ engraver is removed from a context it can no longer produce its
 output.  This is a crude way of modifying the output, but it
 can sometimes be useful.
 
-@unnumberedsubsubsec Changing a single context
+@subsubheading Changing a single context
 
 To remove an engraver from a single context we use the
 @code{\with} command placed immediately after the context creation 
@@ -1666,13 +1670,13 @@ the notes in all the voices on that staff:
 >>
 @end lilypond
 
-@unnumberedsubsubsec Changing all contexts of the same type
+@subsubheading Changing all contexts of the same type
 
 The examples above show how to remove or add engravers to
 individual contexts.  It is also possible to remove or add 
 engravers to every context of a specific type by placing the
 commands in the appropriate context in a @code{\layout}
-block.  For example, If we wanted to show ambiti for every
+block.  For example, if we wanted to show an ambitus for every
 staff in a four-staff score we could write
 
 @lilypond[quote,verbatim,ragged-right]
@@ -1735,7 +1739,7 @@ cello.  In this case, we would start with @q{Notes and lyrics} (for the
 soprano part).
 
 @example
-\version "2.11.38"
+\version @w{"@version{}"}
 melody = \relative c' @{
   \clef treble
   \key c \major
@@ -1763,7 +1767,7 @@ text = \lyricmode @{
 Now we want to add a cello part.  Let's look at the @q{Notes only} example:
 
 @example
-\version "2.11.38"
+\version @w{"@version{}"}
 melody = \relative c' @{
   \clef treble
   \key c \major
@@ -1778,27 +1782,29 @@ melody = \relative c' @{
 @}
 @end example
 
-We don't need two @code{\version} commands.  We'll need the @code{melody}
-section.  We don't want two @code{\score} sections -- if we had two
-@code{\score}s, we'd get the two parts separately.  We want them together,
-as a duet.  Within the @code{\score} section, we don't need two
-@code{\layout} or @code{\midi}.
-
-If we simply cut and paste the @code{melody} section, we would end up with
-two @code{melody} sections.  So let's rename them.  We'll call the section
-for the soprano @code{sopranoMusic} and the section for the cello
-@code{celloMusic}.  While we're doing this, let's rename @code{text}
-to be @code{sopranoLyrics}.  Remember to rename both instances of all
-these names -- both the initial definition (the
+We don't need two @code{\version} commands.  We'll need the 
+@code{melody} section.  We don't want two @code{\score} sections
+-- if we had two @code{\score}s, we'd get the two parts separately.
+We want them together, as a duet.  Within the @code{\score} 
+section, we don't need two @code{\layout} or @code{\midi}.
+
+If we simply cut and paste the @code{melody} section, we would 
+end up with two @code{melody} definitions.  This would not generate
+an error, but the second one would be used for both melodies.
+So let's rename them to make them distinct.  We'll call the 
+section for the soprano @code{sopranoMusic} and the section for
+the cello @code{celloMusic}.  While we're doing this, let's rename
+@code{text} to be @code{sopranoLyrics}.  Remember to rename both
+instances of all these names -- both the initial definition (the
 @code{melody = \relative c' @{ } part) and the name's use (in the
 @code{\score} section).
 
-While we're doing this, let's change the cello part's staff -- celli
-normally use bass clef.  We'll also give the cello some different
-notes.
+While we're doing this, let's change the cello part's staff -- 
+celli normally use bass clef.  We'll also give the cello some 
+different notes.
 
 @example
-\version "2.11.38"
+\version @w{"@version{}"}
 sopranoMusic = \relative c' @{
   \clef treble
   \key c \major
@@ -1867,7 +1873,7 @@ This looks a bit messy; the indentation is messed up now.  That is
 easily fixed.  Here's the complete soprano and cello template.
 
 @lilypond[quote,verbatim,ragged-right]
-\version "2.11.37"
+\version "2.11.38"
 sopranoMusic = \relative c' {
   \clef treble
   \key c \major
@@ -1915,7 +1921,6 @@ from Handel's Messiah:
 
 @c The following should appear as music without code
 @lilypond[quote,ragged-right]
-\version "2.11.38"
 global = { \key d \major \time 4/4 }
 sopMusic = \relative c'' {
   \clef "treble"
@@ -2074,7 +2079,7 @@ stacked one above the other:
       \clef "bass"
       \new Voice = "basses" @{ \global \bassMusic @}
     >>
-    \new Lyrics \lyricsto "basses" @{ bassWords @}   
+    \new Lyrics \lyricsto "basses" @{ \bassWords @}
   >>  % end ChoirStaff
 
   \new PianoStaff <<
@@ -2187,7 +2192,7 @@ music definitions and one to define the time signature
 and key:
 
 @example
-\version "2.11.38"
+\version @w{"@version{}"}
 \header @{
   title = "Jesu, meine Freude"
   composer = "J S Bach"
@@ -2347,3 +2352,4 @@ PedalOrganMusic = \relative c {
 
 
 
+