09.09.2013 Views

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

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.

Hoofdstuk 3: Fundamentele concepten 72<br />

}<br />

a4 b c d<br />

sopranoLyrics = \lyricmode {<br />

Aaa Bee Cee Dee<br />

}<br />

celloMusic = \relative c {<br />

\clef "bass"<br />

\key c \major<br />

\time 4/4<br />

d4 g fis8 e d4<br />

}<br />

\score {<br />

><br />

\layout { }<br />

\midi { }<br />

}<br />

This is looking promising, but the cello part won’t appear in the score – we haven’t used it<br />

in the \score section. If we want the cello part to appear under the soprano part, we need to<br />

add<br />

\new Staff \celloMusic<br />

underneath the soprano stuff. We also need to add > around the music – that tells<br />

<strong>LilyPond</strong> that there’s more than one thing (in this case, two Staves) happening at once. The<br />

\score looks like this now:<br />

\score {<br />

<br />

\new Staff \celloMusic<br />

>><br />

\layout { }<br />

\midi { }<br />

}<br />

This looks a bit messy; the indentation is messed up now. That is easily fixed. Here’s the complete<br />

soprano and cello template.<br />

\version "2.17.21"<br />

sopranoMusic = \relative c' {

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

Saved successfully!

Ooh no, something went wrong!