10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Text 174<br />

Comb<strong>in</strong><strong>in</strong>g dynamics with markup texts<br />

Some dynamics may <strong>in</strong>volve text <strong>in</strong>dications (such as “più forte” or “piano subito”). These can<br />

be produced us<strong>in</strong>g a \markup block.<br />

piuF = \markup { \italic più \dynamic f }<br />

\layout { ragged-right = ##f }<br />

\relative c'' {<br />

c2\f c-\piuF<br />

}<br />

<br />

<br />

<br />

f<br />

<br />

piùf<br />

Comb<strong>in</strong><strong>in</strong>g two parts on the same staff<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 />

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

Saved successfully!

Ooh no, something went wrong!