From 1a5927476ae1e037a1bd18b6bc2f76bfa0a2ffd1 Mon Sep 17 00:00:00 2001 From: Mats Bengtsson Date: Thu, 30 Aug 2007 08:17:32 +0200 Subject: [PATCH] Add colors to the examples on voice instantiation. Thanks Kieren! --- Documentation/user/basic-notation.itely | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/user/basic-notation.itely b/Documentation/user/basic-notation.itely index b156eca1ca..eadb2b71a6 100644 --- a/Documentation/user/basic-notation.itely +++ b/Documentation/user/basic-notation.itely @@ -1055,7 +1055,8 @@ outside the @code{<< \\ >>} construct. This should be noted when making changes at the voice level. This also means that slurs and ties cannot go into or out of a @code{<< \\ >>} construct. Conversely, parallel voices from separate @code{<< \\ >>} constructs on the same staff are the -same voice. Here is the same example, with different noteheads for each +same voice. Here is the same example, with different noteheads and +colors for each voice. Note that the change to the note-head style in the main voice does not affect the inside of the @code{<< \\ >>} constructs. Also, the change to the @@ -1068,16 +1069,20 @@ voice in the first @code{<< \\ >>} construct is effective in the second @lilypond[quote,verbatim,fragment] \new Staff \relative c' { \override NoteHead #'style = #'cross + \override NoteHead #'color = #red c16 d e f << { g4 f e } \\ { \override NoteHead #'style = #'triangle + \override NoteHead #'color = #blue r8 e4 d c8 ~ } >> | << { d2 e2 } \\ { c8 b16 a b8 g ~ g2 } \\ - { \override NoteHead #'style = #'slash s4 b4 c2 } + { \override NoteHead #'style = #'slash + \override NoteHead #'color = #green + s4 b4 c2 } >> } @end lilypond @@ -1128,12 +1133,13 @@ The command @code{\oneVoice} will revert back to the normal setting. An expression that appears directly inside a @code{<< >>} belongs to the main voice. This is useful when extra voices appear while the main voice is playing. Here is a more correct rendition of the example from -the previous section. The crossed noteheads demonstrate that the main +the previous section. The crossed colored noteheads demonstrate that the main melody is now in a single voice context. @lilypond[quote,ragged-right,verbatim] \new Staff \relative c' { \override NoteHead #'style = #'cross + \override NoteHead #'color = #red c16 d e f \voiceOne << -- 2.39.5