09.09.2013 Views

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Hoofdstuk 4: Tweaking output 139<br />

<br />

<br />

<br />

mp dolce<br />

= 50<br />

<br />

<br />

<br />

<br />

Clarinet<br />

<br />

That looks better, but let’s make a few changes. The glissando is hard to see, so let’s make it<br />

thicker and closer to the note heads. Let’s put the metronome marking above the clef, instead<br />

of over the first note. And finally, my composition professor hates ‘C’ time signatures, so we’d<br />

better make that ‘4/4’ instead.<br />

Don’t change ‘music.ly’, though. Replace our ‘definitions.ily’ with this:<br />

%%% definitions.ily<br />

mpdolce =<br />

#(make-dynamic-script<br />

#{ \markup { \hspace #0<br />

\translate #'(5 . 0)<br />

\line { \dynamic "mp"<br />

\text \italic "dolce" } }<br />

#})<br />

inst =<br />

#(define-music-function<br />

(parser location string)<br />

(string?)<br />

#{ ^\markup \bold \box #string #})<br />

\layout{<br />

\context {<br />

\Score<br />

\override MetronomeMark.extra-offset = #'(-9 . 0)<br />

\override MetronomeMark.padding = #'3<br />

}<br />

\context {<br />

\Staff<br />

\override TimeSignature.style = #'numbered<br />

}<br />

\context {<br />

\Voice<br />

\override Glissando.thickness = #3<br />

\override Glissando.gap = #0.1<br />

}<br />

}<br />

= 50<br />

4 <br />

4 <br />

<br />

mp dolce<br />

<br />

<br />

<br />

<br />

Clarinet<br />

<br />

That looks nicer! But now suppose that I want to publish this piece. My composition professor<br />

doesn’t like ‘C’ time signatures, but I’m somewhat fond of them. Let’s copy the current<br />

‘definitions.ily’ to ‘web-publish.ily’ and modify that. Since this music is aimed at producing<br />

a pdf which will be displayed on the screen, we’ll also increase the overall size of the<br />

output.

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

Saved successfully!

Ooh no, something went wrong!