]> git.donarmstrong.com Git - lilypond.git/blob - input/test/part-combine.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[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 onto
6 one staff.  LilyPond has a part combiner, that combines or separates two
7 voices according to actual rhythm and pitch.  User-defined texts such as
8 ``solo'' and ``@`a2'' are typeset automagically, as appropriate. "
9 }
10
11 \score{
12    \notes \context Staff = flauti <<
13     \time 4/4
14     \partcombine
15     \relative c'' {
16       c4 d e f | b,4 d c d | r2 e4 f | c4 d e f |
17       c4 r e f | c4 r e f | c4 r a r | a a r a |
18       a2 \set soloADue = ##f a |
19     }
20     \relative c'' {
21       g4 b d f | r2 c4 d | a c c d | a4. b8 c4 d
22       c r e r | r2 s2 | a,4 r a r | a r r a |
23       a2 \set soloADue = ##f a |
24     }
25   >>
26   \paper{
27         raggedright = ##t
28   }
29 }
30
31