@c \version "2.11.51"
+
@node Simultaneous notes
@section Simultaneous notes
than one voice on the same staff.
@menu
-* Single voice::
-* Multiple voices::
+* Single voice::
+* Multiple voices::
@end menu
This section discusses simultaneous notes inside the same voice.
@menu
-* Chorded notes::
-* Clusters::
+* Chorded notes::
+* Clusters::
@end menu
+
@node Chorded notes
@unnumberedsubsubsec Chorded notes
@code{<g a>8 <e a>8}.
@end ignore
+
@node Clusters
@unnumberedsubsubsec Clusters
themselves. Separate clusters would need a separating rest between
them.
+
@node Multiple voices
@subsection Multiple voices
multiple staves.
@menu
-* Single-staff polyphony::
-* Voice styles::
-* Collision resolution::
-* Automatic part combining::
-* Writing music in parallel::
+* Single-staff polyphony::
+* Voice styles::
+* Collision resolution::
+* Automatic part combining::
+* Writing music in parallel::
@end menu
+
@node Single-staff polyphony
@unnumberedsubsubsec Single-staff polyphony
First and third voices get stems up, second and fourth voices get
stems down, third and fourth voice noteheads are horizontally shifted,
-and rests move to avoid collisions.
+and rests move to avoid collisions.
@lilypond[quote,relative=3,verbatim]
<<
{ r8 g g g g f16 es f8 d }
- \\
+ \\
{ es,8 r es r d r d r }
\\
{ d'8 s c s bes s a s }
@funindex \voiceFour
@code{\voiceFour}.
-
@seealso
Learning Manual:
To revert the standard presentation, the @code{\voiceNeutralstyle}
command is used.
-These styles are arbitrarily defined but can be changed. For example,
-the initial definition for @code{\voiceOneStyle} is as follows:
-
-@example
-voiceOneStyle = @{
- \override NoteHead #'style = #'diamond
- \override NoteHead #'color = #red
- \override Stem #'color = #red
- \override Beam #'color = #red
-@}
-@end example
-
-
@predefined
@funindex \voiceOneStyle
Snippets:
@rlsr{Simultaneous notes}.
+
@node Collision resolution
@unnumberedsubsubsec Collision resolution
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
@funindex \oneVoice
@code{\oneVoice}.
-
@funindex \shiftOn
@code{\shiftOn},
@funindex \shiftOnn
@rinternals{NoteCollision},
@rinternals{RestCollision}.
-
@knownissues
When using @code{merge-differently-headed} with an upstem eighth
@snippets
-Parts may be merged without printing text:
-
-@lilypond[quote,verbatim]
-\new Staff <<
- \set Staff.printPartCombineTexts = ##f
- \partcombine
- \relative g' { g a( b) r }
- \relative g' { g r4 r f }
->>
-@end lilypond
-
-The printed text may be changed:
-
-@lilypond[quote,verbatim]
-\new Staff <<
- \set Score.soloText = #"girl"
- \set Score.soloIIText = #"boy"
- \set Score.aDueText = #"together"
- \partcombine
- \relative g' { g4 g r r a2 g }
- \relative g' { r4 r a( b) a2 g }
->>
-@end lilypond
+@lilypondfile[verbatim,lilyquote,texidoc,doctitle]
+{combining-two-parts-on-the-same-staff.ly}
+@lilypondfile[verbatim,lilyquote,texidoc,doctitle]
+{changing-partcombine-texts.ly}
@seealso
Snippets:
@rlsr{Simultaneous notes}.
-
Internals Reference:
@rinternals{PartCombineMusic},
@rinternals{Voice}.
@c IIRC in users list someone pointed out more issues. TODO: lookup FV
+
@node Writing music in parallel
@unnumberedsubsubsec Writing music in parallel
be of the same length.}
@lilypond[quote,verbatim]
-\parallelMusic #'(voiceA voiceB voiceC) {
+\parallelMusic #'(voiceA voiceB voiceC) {
% Bar 1
- r8 g'16[ c''] e''[ g' c'' e''] r8 g'16[ c''] e''[ g' c'' e''] |
- c'2 c'2 |
- r16 e'8.~ e'4 r16 e'8.~ e'4 |
+ r8 g'16 c'' e'' g' c'' e'' r8 g'16 c'' e'' g' c'' e'' |
+ r16 e'8.~ e'4 r16 e'8.~ e'4 |
+ c'2 c'2 |
+
% Bar 2
- r8 a'16[ d''] f''[ a' d'' f''] r8 a'16[ d''] f''[ a' d'' f''] |
- c'2 c'2 |
- r16 d'8.~ d'4 r16 d'8.~ d'4 |
+ r8 a'16 d'' f'' a' d'' f'' r8 a'16 d'' f'' a' d'' f'' |
+ r16 d'8.~ d'4 r16 d'8.~ d'4 |
+ c'2 c'2 |
+
}
\new StaffGroup <<
- \new Staff << \voiceA \\ \voiceC >>
- \new Staff { \clef bass \voiceB }
+ \new Staff << \voiceA \\ \voiceB >>
+ \new Staff { \clef bass \voiceC }
>>
@end lilypond
\parallelMusic #'(voiceA voiceB voiceC) {
% Bar 1
r8 g16 c e g, c e r8 g,16 c e g, c e |
- c2 c |
r16 e8.~ e4 r16 e8.~ e4 |
+ c2 c |
% Bar 2
r8 a,16 d f a, d f r8 a,16 d f a, d f |
- c2 c |
r16 d8.~ d4 r16 d8.~ d4 |
+ c2 c |
+
}
\new StaffGroup <<
- \new Staff << \relative c'' \voiceA \\ \relative c' \voiceC >>
- \new Staff \relative c' { \clef bass \voiceB }
+ \new Staff << \relative c'' \voiceA \\ \relative c' \voiceB >>
+ \new Staff \relative c' { \clef bass \voiceC }
>>
@end lilypond