From: Graham Percival Date: Tue, 26 Dec 2006 14:01:57 +0000 (-0800) Subject: Add piano music parallel writing example. X-Git-Tag: release/2.10.6-1~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b941adfc1691732c1c4c046444ed034385b8464b;p=lilypond.git Add piano music parallel writing example. --- diff --git a/Documentation/user/basic-notation.itely b/Documentation/user/basic-notation.itely index 67bb33faaa..6adc20620f 100644 --- a/Documentation/user/basic-notation.itely +++ b/Documentation/user/basic-notation.itely @@ -1818,6 +1818,47 @@ Music for multiple parts can be interleaved >> @end lilypond +This works quite well for piano music + +@lilypond[quote,verbatim] +music = { + \key c \major + \time 4/4 + \parallelMusic #'(voiceA voiceB voiceC voiceD) { + % Bar 1 + r8 g'16[ c''] e''[ g' c'' e''] r8 g'16[ c''] e''[ g' c'' +e''] | + c'2 c'2 | + r8 a16[ d'] f'[ a d' f'] r8 a16[ d'] f'[ a d' f'] | + c2 c2 | + + % Bar 2 + a'8 b' c'' d'' e'' f'' g'' a'' | + d'4 d' d' d' | + c16 d e f d e f g e f g a f g a b | + a,4 a,4 a,4 a,4 | + + % Bar 3 ... + } +} + +\score { + \new PianoStaff << + \music + \new Staff << + \voiceA \\ + \voiceB + >> + \new Staff { + \clef bass + << + \voiceC \\ + \voiceD + >> + } + >> +} +@end lilypond @node Connecting notes