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