]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add piano music parallel writing example.
authorGraham Percival <graham@percival-music.ca>
Tue, 26 Dec 2006 14:01:57 +0000 (06:01 -0800)
committerGraham Percival <graham@percival-music.ca>
Tue, 26 Dec 2006 14:01:57 +0000 (06:01 -0800)
Documentation/user/basic-notation.itely

index d4bf831e5b8797e6c6bced701149eba5d216351d..b7b8721e8e9f0a0cb4d13cf067b66040fc7cfa24 100644 (file)
@@ -1817,6 +1817,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