|
|
GNU LilyPondWelcome to the home of the GNU Music Typesetter |
||||||||||
|
Node:Automatic part combining, Next:Hara kiri staffs, Previous:Multi measure rests, Up:Writing parts Automatic part combiningAutomatic part combining is used to merge two parts of music onto a staff in an intelligent way. It is aimed primarily at typesetting orchestral scores. When the two parts are identical for a period of time, only one is shown. In places where the two parts differ, they are typeset as separate voices, and stem directions are set automatically. Also, solo and a due parts can be identified and marked. The syntax for part combining is
\partcombine context musicexpr1 musicexpr2where the pieces of music musicexpr1 and musicexpr2 will be combined into one context of type context. The music expressions must be interpreted by contexts whose names should start with one
and two.
The most useful function of the part combiner is to combine parts into
one voice, as common for wind parts in orchestral scores:
\context Staff <
\context Voice=one \partcombine Voice
\context Thread=one \relative c'' {
g a () b r
}
\context Thread=two \relative c'' {
g r4 r f
}
>
Notice that the first If you just want the merging parts, and not the textual markings, you
may set the property soloADue to false.
\context Staff <
\property Staff.soloADue = ##f
\context Voice=one \partcombine Voice
\context Thread=one \relative c'' {
b4 a c g
}
\context Thread=two \relative c'' {
d,2 a4 g'
}
>
There are a number of other properties that you can use to tweak the behavior of part combining, refer to the automatically generated documentation of Thread_devnull_engraver and Voice_devnull_engraver . Look at the documentation of the responsible engravers, Thread_devnull_engraver , Voice_devnull_engraver and A2_engraver . BUGS In |
||||||||||
|
Go back to index of LilyPond.
Please send GNU LilyPond questions and comments to lilypond-user@gnu.org. Please send comments on these web pages to lilypond@packages.debian.org Copyright (c) 1997--2001 Han-Wen Nienhuys and Jan Nieuwenhuizen. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. |
|||||||||||
This page was built from LilyPond-1.4.12 (stable-branch) by