]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/additional-voices-to-avoid-collisions.ly
a3f7d937bfb0cb06a5f07771490d4d8db5a501fb
[lilypond.git] / Documentation / snippets / additional-voices-to-avoid-collisions.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "simultaneous-notes"
11
12   texidoc = "
13 In some instances of complex polyphonic music, additional voices are
14 necessary to prevent collisions between notes.  If more than four
15 parallel voices are needed, additional voices can be added by defining
16 a variable using the Scheme function @code{context-spec-music}.
17
18 "
19   doctitle = "Additional voices to avoid collisions"
20 } % begin verbatim
21
22
23 voiceFive = #(context-spec-music (make-voice-props-set 4) 'Voice)
24
25 \relative c'' {
26   \time 3/4
27   \key d \minor
28   \partial 2
29   <<
30     {
31       \voiceOne
32       a4. a8
33       e'4 e4. e8
34       f4 d4. c8
35     }
36     \\
37     {
38       \voiceThree
39       f,2
40       bes4 a2
41       a4 s2
42     }
43     \\
44     {
45       \voiceFive
46       s2
47       g4 g2
48       f4 f2
49     }
50     \\
51     \bar "||"{
52       \voiceTwo
53       d2
54       d4 cis2
55       d4 bes2
56     }
57   >>
58 }