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.

Templates 523<br />

}<br />

\score {<br />

\new StaffGroup <br />

\new Staff ><br />

\new Staff ><br />

\new Staff ><br />

>><br />

\layout { }<br />

\midi { }<br />

}<br />

Viol<strong>in</strong> 2 <br />

Viola<br />

Cello<br />

<br />

Viol<strong>in</strong> 1 <br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Str<strong>in</strong>g quartet template with separate parts<br />

The “Str<strong>in</strong>g quartet template” snippet produces a nice str<strong>in</strong>g quartet, but what if you needed<br />

to pr<strong>in</strong>t parts? This new template demonstrates how to use the \tag feature to easily split a<br />

piece <strong>in</strong>to <strong>in</strong>dividual parts.<br />

You need to split this template <strong>in</strong>to separate files; the filenames are conta<strong>in</strong>ed <strong>in</strong> comments<br />

at the beg<strong>in</strong>n<strong>in</strong>g of each file. piece.ly conta<strong>in</strong>s all the music def<strong>in</strong>itions. The other files –<br />

score.ly, vn1.ly, vn2.ly, vla.ly, and vlc.ly – produce the appropriate part.<br />

Do not forget to remove specified comments when us<strong>in</strong>g separate files!<br />

%%%%% piece.ly<br />

%%%%% (This is the global def<strong>in</strong>itions file)<br />

global= {<br />

\time 4/4<br />

\key c \major<br />

}<br />

Viol<strong>in</strong>one = \new Voice { \relative c''{<br />

\set Staff.<strong>in</strong>strumentName = #"Viol<strong>in</strong> 1 "<br />

c2 d e1<br />

\bar "|." }} %*********************************<br />

Viol<strong>in</strong>two = \new Voice { \relative c''{<br />

\set Staff.<strong>in</strong>strumentName = #"Viol<strong>in</strong> 2 "

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

Saved successfully!

Ooh no, something went wrong!