]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/additional-voices-to-avoid-collisions.ly
Web-ja: update introduction
[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.di.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.18.0"
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 voiceFive = #(context-spec-music (make-voice-props-set 4) 'Voice)
23
24 \relative c'' {
25   \time 3/4
26   \key d \minor
27   \partial 2
28   <<
29     \new Voice  {
30       \voiceOne
31       a4. a8
32       e'4 e4. e8
33       f4 d4. c8
34     }
35     \new Voice {
36       \voiceTwo
37       d,2
38       d4 cis2
39       d4 bes2
40     }
41     \new Voice {
42       \voiceThree
43       f'2
44       bes4 a2
45       a4 s2
46     }
47     \new Voice {
48       \voiceFive
49       s2
50       g4 g2
51       f4 f2
52     }
53   >>
54 }