]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/combining-two-parts-on-the-same-staff.ly
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / combining-two-parts-on-the-same-staff.ly
1 %% Do not edit this file; it is auto-generated from LSR!
2 %% Tags: simultaneous-notes, text
3 \version "2.11.35"
4
5 \header { texidoc = "
6 The part combiner tool ( \\partcombine command ) allows you to combine
7 different parts on a same Staff. You can choose whether you want or
8 don't want to add texts such as \"solo\" or \"a2\", by defining the
9 printPartCombineTexts property.
10
11 For vocal scores (hymns), there is no need to add \"solo\"/\"a2\"
12 texts, so they should be switched off. However, you'd better not use it
13 if there are any solos, as they won't be indicated. In such cases, you
14 may simply want to use standard LilyPond polyphony.
15
16 This snippet presents the three ways two parts can be printed on a same
17 staff : standard polyphony, \\partcombine whitout texts, and
18 \\partcombine with texts.
19
20
21 " }
22 % begin verbatim
23 musicUp = {      \time 4/4
24                         \relative c'' {
25                                 a4 c4.(g8) a4 |
26                                 g4 e' g,( a8 b) | 
27                                 c b a2.
28                         }
29 }
30
31 musicDown = {
32                         \relative c'' {
33                                 g4 e4.(d8) c4 |
34                                 r2 g'4( f8 e) |
35                                 d2 a
36                         }
37 }
38 \score{
39         \new Staff {
40                 \set Staff.instrumentName = "Standard polyphony  "
41                 << \musicUp  \\ \musicDown >>
42         }
43         \layout{ 
44         indent = 6.0\cm 
45         }
46 }
47
48 \score{
49         \context Staff {
50                         \set Staff.instrumentName = "PartCombine without texts  "
51                         \partcombine \musicUp \musicDown
52         }
53         \layout{
54                 indent = 6.0\cm
55                 \context {
56                         \Voice
57                         printPartCombineTexts = ##f
58                 }
59         }
60 }
61
62 \score{
63         \context Staff {
64                         \set Staff.instrumentName = "PartCombine with texts  "
65                         \partcombine \musicUp \musicDown
66         }
67         \layout{
68                 indent = 6.0\cm
69                 \context {
70                         \Voice
71                         printPartCombineTexts = ##t
72                 }
73         }
74 }
75