]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/user/staff.itely
Update from Ralph.
[lilypond.git] / Documentation / user / staff.itely
index b4312b46ab91eb0dd5db1442cf26a8080e614331..cc4a830cae0d77720d31d4cc8b5b866d58704ba5 100644 (file)
@@ -9,14 +9,16 @@
 @node Staff notation
 @section Staff notation
 
-Notes, dynamic signs, etc., are grouped with a set of horizontal
+@lilypondfile[quote,ragged-right,line-width=16\cm,staffsize=16]
+{staff-headword.ly}
+
+Notes, dynamic signs, rests, etc., are grouped with a set of horizontal
 lines, called a staff (plural @q{staves}).  In LilyPond, these
 lines are drawn using a separate layout object called @code{staff
 symbol}.
 
-Two or more staves can be grouped vertically in a
-@internalsref{GrandStaff}, a @internalsref{StaffGroup}, or a
-@internalsref{ChoirStaff}.
+Two or more staves can be grouped vertically in a @code{GrandStaff}, a
+@code{StaffGroup}, or a @code{ChoirStaff}.
 
 
 @menu
@@ -38,19 +40,20 @@ Two or more staves can be grouped vertically in a
 @unnumberedsubsubsec System start delimiters
 
 @cindex start of system
-@cindex Staff, multiple
+@cindex staff, multiple
 @cindex bracket, vertical
 @cindex brace, vertical
 @cindex grand staff
 @cindex staff group
 @cindex staff, choir
+@cindex system
 
 Many scores consist of more than one staff.  These staves can be
 grouped in several different ways:
 
 @itemize
 @item
-In a @internalsref{GrandStaff}, the group is started with a brace
+In a @code{GrandStaff}, the group is started with a brace
 at the left, and bar lines are connected between the staves. 
 
 @lilypond[verbatim,ragged-right,quote]
@@ -62,7 +65,7 @@ at the left, and bar lines are connected between the staves.
 @end lilypond
 
 @item
-In a @internalsref{StaffGroup}, the bar lines will be drawn through
+In a @code{StaffGroup}, the bar lines will be drawn through
 all the staves, but the group is started with a bracket.
 
 @lilypond[verbatim,ragged-right,quote]
@@ -74,7 +77,7 @@ all the staves, but the group is started with a bracket.
 @end lilypond
 
 @item
-In a @internalsref{ChoirStaff}, the group is started with a
+In a @code{ChoirStaff}, the group is started with a
 bracket, but bar lines are not connected. 
 
 @lilypond[verbatim,ragged-right,quote]
@@ -98,6 +101,9 @@ bar lines are not connected.
 @end lilypond
 @end itemize
 
+@cindex Mensurstriche layout
+@cindex Renaissance music
+
 In addition to these four staff group types, other groupings can
 be produced by changing various properties. E.g., the
 @q{Mensurstriche} layout common in Renaissance music, with
@@ -116,7 +122,7 @@ Staff groups can be nested, using the context
 @commonprop
 
 More complex nesting can be accomplished using the property
-@internalsref{systemStartDelimiterHierarchy}: 
+@code{systemStartDelimiterHierarchy}: 
 
 @lilypond[quote,ragged-right,verbatim]
 \new StaffGroup
@@ -132,23 +138,32 @@ More complex nesting can be accomplished using the property
 >>
 @end lilypond
 
-@seealso
-
-Snippets: @lsrdir{staff}
-
 Each staff group context sets the property
 @code{systemStartDelimiter} to one of the values
 @internalsref{SystemStartBar}, @internalsref{SystemStartBrace},
 and @internalsref{SystemStartBracket}.  A fourth delimiter,
 @code{systemStartSquare}, is also available, but must be
-instantiated manually.
-
-@commonprop
+instantiated manually
 
+@c FIXME: Graham will deal with this.  -gp
+@c snippet 201
 To display a bracket even if there is only one staff, see
 @lsr{staff,display-bracket-with-only-one-staff-in-a
 system.ly}
-@c snippet 201
+
+@seealso
+
+Music Glossary: @rglos{brace}, @rglos{staff}, @rglos{staves}
+@rglos{bracket}.
+
+Snippets: @lsrdir{staff}
+
+Internals Reference: @internalsref{ChoirStaff},
+@internalsref{GrandStaff}, @internalsref{StaffGroup},
+@internalsref{SystemStartBar}, @internalsref{SystemStartBrace},
+@internalsref{SystemStartBracket},
+@internalsref{systemStartDelimiterHierarchy}.
+
 
 @node Staff symbol
 @unnumberedsubsubsec Staff symbol
@@ -175,12 +190,13 @@ b b
 b b
 @end lilypond
 
+@cindex staves, Frenched
+@cindex ossia
+@cindex Frenched staves
+
 In combination with Frenched staves, this may be used to typeset
 @emph{ossia} sections.  An example is shown here
 
-@cindex staves, Frenched 
-@cindex ossia
-
 @lilypond[verbatim,relative=2,quote]
 <<
   \new Staff \with
@@ -220,28 +236,29 @@ In combination with Frenched staves, this may be used to typeset
 
 @seealso
 
+Music Glossary: @rglos{ossia}, @rglos{staff}, @rglos{Frenched staff}.
+
 Snippets: @lsrdir{staff}
 
 Internals Reference: @internalsref{StaffSymbol},
 @internalsref{DrumStaff}.
 
-Examples: @lsrdir{staff}
-
 
 @node Hiding staves
 @unnumberedsubsubsec Hiding staves
 
 @cindex Frenched scores
-@cindex staves, hiding 
+@cindex staves, hiding
+@cindex staves, empty 
 
 In orchestral scores, staff lines that only have rests are usually
 removed; this saves some space.  This style is called @q{French
-Score}.  For @internalsref{Lyrics}, @internalsref{ChordNames} and
-@internalsref{FiguredBass}, this is switched on by default.  When
+Score}.  For @code{Lyrics}, @code{ChordNames} and
+@code{FiguredBass}, this is switched on by default.  When
 the lines of these contexts turn out empty after the line-breaking
 process, they are removed.
 
-For normal staves, a specialized @internalsref{Staff} context is
+For normal staves, a specialized @code{Staff} context is
 available, which does the same: staves containing nothing (or only
 multi-measure rests) are removed.  The context definition is
 stored in @code{\RemoveEmptyStaffContext} variable.  Observe how
@@ -262,7 +279,7 @@ the second staff in this example disappears in the second line
 
 The first system shows all staves in full.  If empty staves should
 be removed from the first system too, set @code{remove-first} to
-true in @internalsref{VerticalAxisGroup}.
+true in @code{VerticalAxisGroup}.
 
 @example
 \override Score.VerticalAxisGroup #'remove-first = ##t
@@ -272,6 +289,8 @@ To remove other types of contexts, use
 @code{\AncientRemoveEmptyStaffContext} or
 @code{\RemoveEmptyRhythmicStaffContext}.
 
+@cindex ossia
+
 Another application of the @code{\RemoveEmptyStaffContext} is to
 make ossia sections, i.e., alternative melodies on a separate
 piece of staff, with help of a Frenched staff.  See @ref{Staff
@@ -295,8 +314,14 @@ You can make the staff lines invisible by removing the
 
 @seealso
 
+Notation Reference: @ref{Staff symbol}.
+
 Snippets: @lsrdir{staff}
 
+Internals Reference: @internalsref{ChordNames},
+@internalsref{FiguredBass}, @internalsref{Lyrics},
+@internalsref{Staff}, @internalsref{VerticalAxisGroup}.
+
 @node Writing parts
 @subsection Writing parts
 
@@ -352,6 +377,14 @@ For more details, see @ref{Text markup}.
 
 @seealso
 
+Music Glossary: @rglos{metronome}, @rglos{metronomic indication},
+@rglos{tempo indication}.
+@c FIXME : add @rglos{Mälzels Metronome}, @rglos{M.M.}, @rglos{tempo}?
+
+Notation Reference: @ref{Text markup}.
+
+Snippets: @lsrdir{staff}.
+
 Internals Reference: @internalsref{MetronomeMark}, @ref{MIDI
 output}.
 
@@ -370,24 +403,23 @@ place it further away from the staff.
 
 @c perhaps also an example of how to move it horizontally?
 
-@seealso
-
-Snippets: @lsrdir{staff}
 
 @node Instrument names
 @unnumberedsubsubsec Instrument names
 
+@cindex instrument names
+@cindex instrument names, short
+
 In an orchestral score, instrument names are printed at the left
 side of the staves.
 
-This can be achieved by setting
-@internalsref{Staff}.@code{instrumentName} and
-@internalsref{Staff}.@code{shortInstrumentName}, or
-@internalsref{PianoStaff}.@code{instrumentName} and
-@internalsref{PianoStaff}.@code{shortInstrumentName}.  This will
-print text before the start of the staff.  For the first staff,
-@code{instrumentName} is used.  If set, @code{shortInstrumentName}
-is used for the following staves.
+This can be achieved by setting @code{Staff}.@code{instrumentName} and
+@code{Staff}.@code{shortInstrumentName}, or
+@code{PianoStaff}.@code{instrumentName} and
+@code{PianoStaff}.@code{shortInstrumentName}.  This will print text
+before the start of the staff.  For the first staff,
+@code{instrumentName} is used.  If set, @code{shortInstrumentName} is
+used for the following staves.
 
 @lilypond[quote,verbatim,ragged-right,relative=1,fragment]
 \set Staff.instrumentName = "Ploink "
@@ -407,6 +439,8 @@ instrument names, for example
 c''1
 @end lilypond
 
+@cindex instrument names, centering
+
 If you wish to center the instrument names, you must center all of
 them individually:
 
@@ -462,6 +496,8 @@ engraver must be added to that context.
 More information about adding and removing engravers can be found
 in @ref{Modifying context plug-ins}.
 
+@cindex instrument names, changing
+
 Instrument names may be changed in the middle of a piece,
 
 @lilypond[quote,fragment,verbatim,ragged-right]
@@ -478,15 +514,20 @@ c1 c c c \break
 
 @seealso
 
+Notation Reference: @ref{Modifying context plug-ins}.
+
 Snippets: @lsrdir{staff}
 
-Internals Reference: @internalsref{InstrumentName}.
+Internals Reference: @internalsref{InstrumentName},
+@internalsref{PianoStaff}, @internalsref{Staff}.
 
 
 @node Quoting other voices
 @unnumberedsubsubsec Quoting other voices
 
 @cindex cues
+@cindex quoting other voices
+@cindex fragments
 
 With quotations, fragments of other parts can be inserted into a
 part directly.  Before a part can be quoted, it must be marked
@@ -579,8 +620,8 @@ dynamics.
 
 @refbugs
 
-Only the contents of the first @internalsref{Voice} occurring in
-an @code{\addQuote} command will be considered for quotation, so
+Only the contents of the first @code{Voice} occurring in an
+@code{\addQuote} command will be considered for quotation, so
 @var{music} can not contain @code{\new} and @code{\context Voice}
 statements that would switch to a different Voice.
 
@@ -598,7 +639,7 @@ Notation Reference: @ref{Instrument transpositions}.
 
 Snippets: @lsrdir{staff}
 
-Internals Reference: @internalsref{QuoteMusic}.
+Internals Reference: @internalsref{QuoteMusic}, @internalsref{Voice}.
 
 
 @node Formatting cue notes