]> git.donarmstrong.com Git - lilypond.git/commitdiff
Updates from the mailist.
authorGraham Percival <graham@percival-music.ca>
Sat, 3 Feb 2007 22:39:01 +0000 (14:39 -0800)
committerGraham Percival <graham@percival-music.ca>
Sat, 3 Feb 2007 22:39:01 +0000 (14:39 -0800)
Documentation/user/advanced-notation.itely
Documentation/user/basic-notation.itely

index 19f9bd5bc58e39bcc718da8509337e5381bcfca4..66067fd1a3330104c0c008e47225e257bba5a5cc 100644 (file)
@@ -240,8 +240,6 @@ Examples:
 @inputfileref{input/@/regression,glissando@/-broken@/.ly}.
 @inputfileref{input/@/regression,line@/-arrows@/.ly}.
 @inputfileref{input/@/regression,line@/-style@/.ly}.
-@inputfileref{input/@/regression,text@/-spanner@/.ly}.
-@inputfileref{input/@/regression,text@/-spanner@/.ly}.
 
 
 @node Text spanners
@@ -292,8 +290,6 @@ To print a solid line, use
 
 Program reference: @internalsref{TextSpanner}.
 
-Examples: @inputfileref{input/@/regression,text@/-spanner@/.ly}.
-
 
 @node Text marks
 @subsection Text marks
@@ -2321,8 +2317,6 @@ The other arguments  are the offset and the text of the label.
 
 Program reference: @internalsref{text-balloon-interface}.
 
-Examples: @inputfileref{input/@/regression,balloon@/.ly}.
-
 
 
 
index da60b0e06cc876bc33edbfe50d74a0d53935c4be..7e0af6ffee543103d08cde8e95397bc2aabba2fb 100644 (file)
@@ -1019,6 +1019,7 @@ to the note immediately preceding it.
 @code{noteD} is relative to @code{noteC}, not @code{noteB} or
 @code{noteA}.
 
+
 @node Explicitly instantiating voices
 @subsection Explicitly instantiating voices
 
@@ -1121,13 +1122,29 @@ the music.
 }
 @end lilypond
 
+In some instances of complex polyphonic music, you may need additional
+voices to avoid collisions between notes.  Additional voices are added
+by defining an identifier, as shown below:
+
+@lilypond[quote,verbatim,ragged-right,relative=2]
+voiceFive = #(context-spec-music (make-voice-props-set 4) 'Voice)
+
+\relative c''' <<
+  { \voiceOne g4 ~  \stemDown g32[ f( es d c b a b64 )g] } \\
+  { \voiceThree  b4} \\
+  { \voiceFive d,} \\
+  { \voiceTwo g,}
+>>
+@end lilypond
+
 
 @node Collision Resolution
 @subsection Collision Resolution
 
 Normally, note heads with a different number of dots are not merged, but
 when the object property @code{merge-differently-dotted} is set in
-the @internalsref{NoteCollision} object, they are merged
+the @internalsref{NoteCollision} object, they are merged:
+
 @lilypond[quote,verbatim,fragment,ragged-right,relative=2]
 \new Voice << {
   g8 g8
@@ -1138,7 +1155,8 @@ the @internalsref{NoteCollision} object, they are merged
 @end lilypond
 
 Similarly, you can merge half note heads with eighth notes, by setting
-@code{merge-differently-headed}
+@code{merge-differently-headed}:
+
 @lilypond[quote,ragged-right,fragment,relative=2,verbatim]
 \new Voice << {
   c8 c4.
@@ -1158,6 +1176,30 @@ for example
 \new Voice << c''4 \\ r4 >>
 @end lilypond
 
+If three or more notes line up in the same column,
+@code{merge-differently-headed} cannot
+successfully complete the merge of the two notes that should be merged.
+To allow the merge to work properly, apply a @code{\shift} to the note that
+should not be merged.  In the first measure of following example,
+@code{merge-differently-headed} does not work (the half-note head is
+solid).  In the second measure, @code{\shiftOn} is applied to move the
+top @code{g} out of the column, and @code{merge-differently-headed}
+works properly.
+
+@lilypond[quote,ragged-right,fragment,verbatim,relative=2]
+\override Staff.NoteCollision #'merge-differently-headed = ##t
+<<
+  { d=''2 g2 } \\
+  { \oneVoice d=''8 c8 r4 e,8 c'8 r4 } \\
+  { \voiceFour e,,2 e'2}
+>>
+<<
+  { d'=''2 \shiftOn g2 } \\ 
+  { \oneVoice d=''8 c8 r4 e,8 c'8 r4 } \\
+  { \voiceFour e,,2 e'2}
+>>
+@end lilypond
+
 
 @refcommands
 
@@ -1179,8 +1221,9 @@ for example
 @funindex \shiftOnnn
 @code{\shiftOnnn},
 @funindex \shiftOff
-@code{\shiftOff}: these commands specify in what chords of the current
-voice should be shifted.  The outer voices (normally: voice one and
+@code{\shiftOff}: these commands specify the
+degree to which chords of the current voice should be shifted.
+The outer voices (normally: voice one and
 two) have @code{\shiftOff}, while the inner voices (three and four)
 have @code{\shiftOn}.  @code{\shiftOnn} and @code{\shiftOnnn} define
 further shift levels.