10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Simultaneous notes 104<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Comb<strong>in</strong><strong>in</strong>g two parts on the same staff<br />

<br />

<br />

<br />

The part comb<strong>in</strong>er tool ( \partcomb<strong>in</strong>e command ) allows the comb<strong>in</strong>ation of several different<br />

parts on the same staff. Text directions such as “solo” or “a2” are added by default; to remove<br />

them, simply set the property pr<strong>in</strong>tPartComb<strong>in</strong>eTexts to f. For vocal scores (hymns), there is<br />

no need to add “solo/a2” texts, so they should be switched off. However, it might be better not<br />

to use it if there are any solos, as they won’t be <strong>in</strong>dicated. In such cases, standard polyphonic<br />

notation may be preferable.<br />

This snippet presents the three ways two parts can be pr<strong>in</strong>ted on a same staff: standard<br />

polyphony, \partcomb<strong>in</strong>e without texts, and \partcomb<strong>in</strong>e with texts.<br />

musicUp = \relative c'' {<br />

\time 4/4<br />

a4 c4.( g8) a4 |<br />

g4 e' g,( a8 b) |<br />

c b a2.<br />

}<br />

musicDown = \relative c'' {<br />

g4 e4.( d8) c4 |<br />

r2 g'4( f8 e) |<br />

d2 \stemDown a<br />

}<br />

\score {<br />

><br />

>><br />

\layout {<br />

<strong>in</strong>dent = 6.0\cm<br />

\context {<br />

\Score<br />

\override SystemStartBar #'collapse-height = #30<br />

}<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!