]> git.donarmstrong.com Git - lilypond.git/blob - input/test/part-combine.ly
c81f2c655dbda1d103344e8791ac2acf2f294757
[lilypond.git] / input / test / part-combine.ly
1
2 \version "2.1.26"
3
4 \header{ texidoc="@cindex Part Combine
5 In orchestral scores and hymns, voices are traditionally combined into
6 one staff.  LilyPond has a part combiner that combines, or separates, two
7 voices according to the actual rhythm and pitch.  Configurable texts, such 
8 as ``solo'' and ``@`a2'', are typeset automatically in appropriate
9 places. "
10 }
11
12 \score{
13    \notes \context Staff = flauti <<
14     \time 4/4
15     \partcombine
16     \relative c'' {
17       c4 d e f | b,4 d c d | r2 e4 f | c4 d e f |
18       c4 r e f | c4 r e f | c4 r a r | a a r a |
19       a2 \set soloADue = ##f a |
20     }
21     \relative c'' {
22       g4 b d f | r2 c4 d | a c c d | a4. b8 c4 d
23       c r e r | r2 s2 | a,4 r a r | a r r a |
24       a2 \set soloADue = ##f a |
25     }
26   >>
27   \paper{
28         raggedright = ##t
29   }
30 }
31
32