]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/user/simultaneous.itely
Fix #498: ties with completion heads.
[lilypond.git] / Documentation / user / simultaneous.itely
index 211aa3156db8858b57e07ea2b330c513d88ac2d4..07be1d420b65127ce73b17700809decaec92ccdc 100644 (file)
@@ -40,6 +40,7 @@ This section discusses simultaneous notes inside the same voice.
 
 @cindex chords
 @cindex brackets, angle
+@cindex relative pitch in chords
 @funindex <
 @funindex >
 @funindex <...>
@@ -87,7 +88,9 @@ staves.  To avoid this, use explicit chords instead as in
 @unnumberedsubsubsec Clusters
 
 @cindex cluster
+@cindex note cluster
 @funindex \makeClusters
+@funindex makeClusters
 
 A cluster indicates a continuous range of pitches to be played.  They
 can be denoted as the envelope of a set of notes.  They are entered by
@@ -143,7 +146,17 @@ multiple staves.
 @node Single-staff polyphony
 @unnumberedsubsubsec Single-staff polyphony
 
-@c Already reordered as Carl suggested --FV
+@cindex single-staff polyphony
+@cindex polyphony, single-staff
+@cindex voice
+@cindex lyrics assigned to one voice
+@funindex \voiceOne
+@funindex voiceOne
+@funindex \voiceOne ... \voiceFour
+@funindex Voice
+@funindex \oneVoice
+@funindex oneVoice
+
 The basic structure of code needed to achieve multiple, independent
 voices in a single staff is illustrated in the following example:
 
@@ -161,17 +174,20 @@ Here, voices are instantiated explicitly and are given a name. The
 that first and third voices get stems up, second and fourth voices get
 stems down, third and fourth voice note heads are horizontally
 shifted, and rests in the respective voices are automatically moved to
-avoid collisions.
+avoid collisions.  Using the @code{\oneVoice} command, all the voice
+settings are put back to the neutral directions typical of a
+single-voice passage.
 
-Using the @code{\oneVoice} command, we can make a voice to be into the
-same @code{Voice} context before and after a temporary polyphonic
-passage.  For example:
+We can make a voice to be in the same @code{Voice} context before
+and after a temporary polyphonic passage.  For example, the following
+construct keeps a voice alive throughout the polyphonic section.  Said
+voice is the first one inside of the two-voice section, and the extra
+voice is the second one.
 
 @example
 << @{ \voiceOne ... @} \new Voice @{ \voiceTwo ... @} >> \oneVoice
 @end example
 
-This construct keeps a voice alive throughout the polyphonic section.
 Using the name given when created, this allows lyrics to be assigned
 to one consistent voice.
 
@@ -198,9 +214,13 @@ to one consistent voice.
 >>
 @end lilypond
 
-The @code{<<@{...@} \\ @{...@}>>} construction can be used as a
-simplified method, where the two (or more) voices are separated by
-double backslashes.  Our first example could be typeset as follows:
+Here, the @code{\voiceOne} and @code{\voiceTwo} commands help to make clear what
+settings does each voice receive.
+
+The @code{<<@{...@} \\ @{...@}>>} construction, where the two (or
+more) voices are separated by double backslashes, can be used as a
+simplified method to print multiple voices in a single staff.  Our
+first example could be typeset as follows:
 
 @lilypond[quote,relative=3,verbatim]
 <<
@@ -228,7 +248,7 @@ becomes voice three which has the stems up as desired.
 >>
 @end lilypond
 
-Spacing rests are often used to avoid too many rests, as seen in the
+Spacer rests are often used to avoid too many rests, as seen in the
 example above.
 
 In all but simplest works it is advisable to create explicit
@@ -254,15 +274,10 @@ music do not have the same rhythm.
 
 @predefined
 
-@funindex \voiceOne
 @code{\voiceOne},
-@funindex \voiceTwo
 @code{\voiceTwo},
-@funindex \voiceThree
 @code{\voiceThree},
-@funindex \voiceFour
 @code{\voiceFour},
-@funindex \oneVoice
 @code{\oneVoice}.
 
 @seealso
@@ -272,7 +287,8 @@ Learning Manual:
 @rlearning{Explicitly instantiating voices}.
 
 Notation Reference:
-@ref{Percussion staves}.
+@ref{Percussion staves},
+@ref{Invisible rests}.
 
 Snippets:
 @rlsr{Simultaneous notes}.
@@ -284,6 +300,11 @@ Snippets:
 @cindex voice styles
 @cindex styles, voice
 @cindex coloring voices
+@funindex \voiceOneStyle
+@funindex \voiceTwoStyle
+@funindex \voiceThreeStyle
+@funindex \voiceFourStyle
+@funindex \voiceNeutralStyle
 
 Voices may be given distinct colors and shapes, allowing them to be
 easily identified:
@@ -305,15 +326,12 @@ command is used.
 
 @predefined
 
-@funindex \voiceOneStyle
+
 @code{\voiceOneStyle},
-@funindex \voiceTwoStyle
+
 @code{\voiceTwoStyle},
-@funindex \voiceThreeStyle
 @code{\voiceThreeStyle},
-@funindex \voiceFourStyle
 @code{\voiceFourStyle},
-@funindex \voiceNeutralStyle
 @code{\voiceNeutralStyle}.
 
 @seealso
@@ -332,11 +350,29 @@ Snippets:
 @cindex merging notes
 @cindex note collisions
 @cindex collisions
+@cindex shift note
+@cindex multiple voices
+@cindex voices, multiple
+@cindex polyphonic music
+@cindex shifting voices
+@cindex voices, multiple
+@cindex shift rest, automatic
 @funindex \shiftOn
+@funindex shiftOn
 @funindex \shiftOnn
+@funindex shiftOnn
 @funindex \shiftOnnn
+@funindex shiftOnnn
 @funindex \shiftOff
-@cindex shift rest, automatic
+@funindex shiftOff
+@funindex \mergeDifferentlyDottedOn
+@funindex mergeDifferentlyDottedOn
+@funindex \mergeDifferentlyDottedOff
+@funindex mergeDifferentlyDottedOff
+@funindex \mergeDifferentlyHeadedOn
+@funindex mergeDifferentlyHeadedOn
+@funindex \mergeDifferentlyHeadedOff
+@funindex mergeDifferentlyHeadedOff
 
 Note heads with equal durations are automatically merged, while
 note heads with unequal durations are not merged.  Rests opposite
@@ -398,16 +434,15 @@ Note heads with different dots may be merged:
 >>
 @end lilypond
 
-@cindex shift note
 
 The collision on the second measure happens because
-@code{merge-differently-headed} cannot successfully complete the
+@code{\mergeDifferentlyHeadedOn} cannot successfully complete the
 merge when three or more notes line up in the same column -- in
 fact, you will obtain a warning for this reason.  To allow the
 merge to work properly, apply a @code{\shift} to the note that
 should not be merged.  Here, @code{\shiftOn} is applied to move
 the top @code{g} out of the column, and
-@code{merge-differently-headed} works properly.
+@code{\mergeDifferentlyHeadedOn} works properly.
 
 @lilypond[quote,relative=2,verbatim]
 <<
@@ -439,28 +474,17 @@ four) have @code{\shiftOn}.  @code{\shiftOnn} and
 Notes are only merged if they have opposing stem directions (i.e., in
 @code{Voice} 1 and 2).
 
-@cindex multiple voices
-@cindex polyphonic music
-@cindex shifting voices
 
 @predefined
 
-@funindex \mergeDifferentlyDottedOn
 @code{\mergeDifferentlyDottedOn},
-@funindex \mergeDifferentlyDottedOff
 @code{\mergeDifferentlyDottedOff},
-@funindex \mergeDifferentlyHeadedOn
 @code{\mergeDifferentlyHeadedOn},
-@funindex \mergeDifferentlyHeadedOff
 @code{\mergeDifferentlyHeadedOff}.
 
-@funindex \shiftOn
 @code{\shiftOn},
-@funindex \shiftOnn
 @code{\shiftOnn},
-@funindex \shiftOnnn
 @code{\shiftOnnn},
-@funindex \shiftOff
 @code{\shiftOff}.
 
 @snippets
@@ -491,7 +515,7 @@ Internals Reference:
 
 @knownissues
 
-When using @code{merge-differently-headed} with an upstem eighth
+When using @code{\mergeDifferentlyHeadedOn} with an upstem eighth
 or a shorter note, and a downstem half note, the eighth note stem
 gets a slightly wrong offset because of the different width of the
 half note head symbol.
@@ -512,7 +536,10 @@ cluster notation (see @ref{Clusters}).
 @cindex automatic part combining
 @cindex part combiner
 @cindex combining parts
+@cindex a due part
+@cindex solo part
 @funindex \partcombine
+@funindex partcombine
 
 Automatic part combining is used to merge two parts of music onto
 a staff.  It is aimed at typesetting orchestral scores.  When the
@@ -556,15 +583,15 @@ instrumentTwo = \relative g' {
 >>
 @end lilypond
 
-The notes in the third measure appear only once, although they
-were specified in both parts.  Stem, slur, and tie directions are
-set automatically, depending whether there is a solo or unison.
-When needed in polyphony situations, the first part (with context
-called @code{one}) always gets up stems, while the second (called
-@code{two}) always gets down stems.  In solo situations, the parts
-get marked with @q{Solo} and @q{Solo II}, respectively.  The
-unisono (@notation{a due}) parts are marked by default with the
-text @qq{a2}.
+The notes in the third measure appear only once, although they were
+specified in both parts.  Stem, slur, and tie directions are set
+automatically, depending whether there is a solo or unison.  When
+needed in polyphony situations, the first part (with context called
+@code{one}) always gets up stems, while the second (called @code{two})
+always gets down stems.  In solo situations, the first and second
+parts get marked with @q{Solo} and @q{Solo II}, respectively.  The
+unisono (@notation{a due}) parts are marked by default with the text
+@qq{a2}.
 
 Both arguments to @code{\partcombine} will be interpreted as
 @code{Voice} contexts.  If using relative octaves,
@@ -628,8 +655,10 @@ events in those will be ignored.
 @node Writing music in parallel
 @unnumberedsubsubsec Writing music in parallel
 
-@cindex Writing music in parallel
-@cindex Interleaved music
+@cindex writing music in parallel
+@cindex interleaved music
+@cindex parallel music
+@funindex \parallelMusic
 @funindex parallelMusic
 
 Music for multiple parts can be interleaved in input code.  The