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