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