version that you are working on. See TRANSLATION for details.
@end ignore
-@c \version "2.11.64"
+@c \version "2.11.65"
@node Staff notation
@section Staff notation
@lilypondfile[quote]{staff-headword.ly}
-This section explains how to influence the staff appearance, print
-scores with more than one staff, and how to apply specific
-performance marks to single staves.
+This section explains how to influence the appearance of staves,
+how to print scores with more than one staff, and how to add tempo
+indications and cue notes to staves.
@menu
* Displaying staves::
\new Staff { c4 d e f }
@end lilypond
-@code{DrumStaff} creates a five-line staff set up for a
-typical drum set. It uses different names for each instrument.
-The instrument names are set using the @code{\drummode} command.
+The @code{DrumStaff} context creates a five-line staff set up for
+a typical drum set. Each instrument is shown with a different
+symbol. The instruments are entered in drum mode following a
+@code{\drummode} command, with each instrument specified by name.
For details, see @ref{Percussion staves}.
@lilypond[verbatim,quote]
}
@end lilypond
-@c FIXME: remove when mentioned in NR 2.8
-@code{GregorianTranscriptionStaff} creates a staff to notate
-modern Gregorian chant. It does not show bar lines.
-
-@lilypond[verbatim,quote,relative=2]
-\new GregorianTranscriptionStaff { c4 d e f e d }
-@end lilypond
-
@code{RhythmicStaff} creates a single-line staff that only
displays the rhythmic values of the input. Real durations are
preserved. For details, see @ref{Showing melody rhythms}.
music: @code{MensuralStaff} and @code{VaticanaStaff}. They are
described in @ref{Pre-defined contexts}.
+The @code{GregorianTranscriptionStaff} context creates a staff to
+notate modern Gregorian chant. It does not show bar lines.
+
+@lilypond[verbatim,quote,relative=2]
+\new GregorianTranscriptionStaff { c4 d e f e d }
+@end lilypond
+
New single staff contexts may be defined. For details, see
@ref{Defining new contexts}.
@seealso
-
Music Glossary:
@rglos{staff},
@rglos{staves}.
@lilypond[verbatim,quote,relative=2]
\new PianoStaff <<
- \set PianoStaff.instrumentName = "Piano"
+ \set PianoStaff.instrumentName = #"Piano"
\new Staff { c1 c }
\new Staff { c1 c }
>>
@lilypondfile[verbatim,lilyquote,texidoc,doctitle]
{mensurstriche-layout-bar-lines-between-the-staves.ly}
-@c FIXME: move to NR 2.8.x when sectioning is ready
@seealso
-
Music Glossary:
@rglos{brace},
@rglos{bracket},
@seealso
-
Notation Reference:
@ref{Grouping staves},
@ref{Instrument names},
@end lilypond
Ledger line thickness can be set independently of staff line
-thickness.
+thickness. In the example the two numbers are factors multiplying
+the staff line thickness and the staff line spacing. The two
+contributions are added to give the ledger line thickness.
@lilypond[verbatim,quote,relative=1]
\new Staff \with {
@predefined
-
@code{\startStaff},
@code{\stopStaff}.
+@endpredefined
@snippets
@seealso
-
Music Glossary:
@rglos{line},
@rglos{ledger line},
@end lilypond
@noindent
-However, the above example is usually not the desired result. To
+However, the above example is not what is usually desired. To
create ossia staves that are above the original staff, have no
time signature or clef, and have a smaller font size, tweaks must
be used. The Learning Manual describes a specific technique to
@seealso
-
Music Glossary:
@rglos{ossia},
@rglos{staff},
Score}. By default, this command hides and removes all empty
staves in a score except for those in the first system.
-@warning{An empty staff may only include multi-measure rests,
-skips, spacer rests, or a combination of these elements.}
+@warning{A staff is considered empty when it contains only
+multi-measure rests, skips, spacer rests, or a combination of these
+elements.}
@lilypond[verbatim,quote,ragged-right]
\layout {
@predefined
-
@code{\RemoveEmptyStaffContext},
@code{\AncientRemoveEmptyStaffContext},
@code{\RemoveEmptyRhythmicStaffContext}.
+@endpredefined
@snippets
@seealso
-
Music Glossary:
@rglos{Frenched staff}.
@seealso
-
Music Glossary:
@rglos{metronome},
@rglos{metronomic indication},
of @code{shortInstrumentName} is used for all succeeding staves.
@lilypond[verbatim,quote,ragged-right,relative=1]
-\set Staff.instrumentName = "Violin "
-\set Staff.shortInstrumentName = "Vln "
+\set Staff.instrumentName = #"Violin "
+\set Staff.shortInstrumentName = #"Vln "
c4.. g'16 c4.. g'16
\break
c1
@lilypond[verbatim,quote,indent=1.5\cm,relative=2]
<<
\new Staff {
- \set Staff.instrumentName = "Flute"
+ \set Staff.instrumentName = #"Flute"
f2 g4 f
}
\new Staff {
\relative c'' <<
\new Staff {
- \set Staff.instrumentName = "Alto Flute in G"
- \set Staff.shortInstrumentName = "Fl."
+ \set Staff.instrumentName = #"Alto Flute in G"
+ \set Staff.shortInstrumentName = #"Fl."
f2 g4 f \break
g4 f g2
}
\new Staff {
- \set Staff.instrumentName = "Clarinet"
- \set Staff.shortInstrumentName = "Clar."
+ \set Staff.instrumentName = #"Clarinet"
+ \set Staff.shortInstrumentName = #"Clar."
c,4 b c2 \break
c2 b4 c
}
Instrument names may be changed in the middle of a piece:
@lilypond[verbatim,quote,ragged-right,relative=1]
-\set Staff.instrumentName = "First"
-\set Staff.shortInstrumentName = "one"
+\set Staff.instrumentName = #"First"
+\set Staff.shortInstrumentName = #"one"
c1 c c c \break
c1 c c c \break
-\set Staff.instrumentName = "Second"
-\set Staff.shortInstrumentName = "two"
+\set Staff.instrumentName = #"Second"
+\set Staff.shortInstrumentName = #"two"
c1 c c c \break
c1 c c c \break
@end lilypond
(midiInstrument . "bassoon"))
\new Staff \with {
- instrumentName = "Bassoon"
+ instrumentName = #"Bassoon"
}
\relative c' {
\clef tenor
@seealso
-
Notation Reference:
@ref{Horizontal dimensions},
@ref{Modifying context plug-ins}.
@cindex fragments
@cindex cue notes
-It is very common for one voice to double the some of the music from
+It is very common for one voice to double some of the music from
another voice. For example, the first and second violins may play the
same notes during a passage of music. In LilyPond this is accomplished
by letting one voice @emph{quote} the other voice without having to
@seealso
-
Notation Reference:
@ref{Instrument transpositions},
@ref{Using tags}.
@seealso
-
Notation Reference:
@ref{Instrument transpositions},
@ref{Instrument names},