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 4: Tweaking output 140<br />

%%% web-publish.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 />

#(set-global-staff-size 23)<br />

\layout{<br />

\context {<br />

\Score<br />

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

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

}<br />

\context {<br />

\Staff<br />

}<br />

\context {<br />

\Voice<br />

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

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

}<br />

}<br />

= 50<br />

<br />

<br />

mp<br />

<br />

dolce<br />

4 <br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Clarinet<br />

<br />

<br />

Now in our music, I simply replace \include "definitions.ily" with \include<br />

"web-publish.ily". Of course, we could make this even more convenient. We could<br />

make a ‘definitions.ily’ file which contains only the definitions of mpdolce and inst,<br />

a ‘web-publish.ily’ file which contains only the \layout section listed above, and a<br />

‘university.ily’ file which contains only the tweaks to produce the output that my professor<br />

prefers. The top of ‘music.ly’ would then look like this:<br />

\include "definitions.ily"

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

Saved successfully!

Ooh no, something went wrong!