Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 5: Working on <strong>LilyPond</strong> projects 136<br />
�<br />
� = 50<br />
� ��� � � �<br />
� � ��<br />
� ��<br />
� �<br />
mp dolce<br />
Poco piu mosso<br />
� ���<br />
� �� � � �<br />
�<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.ly’ with this:<br />
%%% definitions.ly<br />
<strong>mpdolce</strong> = #(make-dynamic-script (markup #:hspace 1 #:translate (cons 5 0)<br />
#:line( #:dynamic "mp" #:text #:italic "dolce" )))<br />
tempoMark = #(define-music-function (parser location markp) (string?)<br />
#{<br />
\once \override Score . RehearsalMark #'self-alignment-X = #left<br />
\once \override Score . RehearsalMark #'extra-spacing-width = #'(+inf.0 . -inf.0)<br />
\mark \markup { \bold $markp }<br />
#})<br />
\layout{<br />
\context { \Score<br />
\override MetronomeMark #'extra-offset = #'(-9 . 0)<br />
\override MetronomeMark #'padding = #'3<br />
}<br />
\context { \Staff<br />
\override TimeSignature #'style = #'numbered<br />
}<br />
\context { \Voice<br />
\override Glissando #'thickness = #3<br />
\override Glissando #'gap = #0.1<br />
}<br />
}<br />
� = 50<br />
�<br />
4<br />
�<br />
�<br />
� ��<br />
� �<br />
mp dolce<br />
�<br />
� ��<br />
�<br />
Poco piu mosso<br />
��� � ��� ��<br />
�� � ���<br />
�<br />
�<br />
That looks nicer! But now suppose that I want to publish this piece. My composition<br />
professor doesn’t like ‘C’ time signatures, but I’m somewhat fond of them. Let’s copy the<br />
current ‘definitions.ly’ to ‘web-publish.ly’ and modify that. Since this music is aimed at<br />
producing a pdf which will be displayed on the screen, we’ll also increase the overall size of the<br />
output.<br />
%%% definitions.ly<br />
<strong>mpdolce</strong> = #(make-dynamic-script (markup #:hspace 1 #:translate (cons 5 0)<br />
#:line( #:dynamic "mp" #:text #:italic "dolce" )))<br />
tempoMark = #(define-music-function (parser location markp) (string?)<br />
#{<br />
\once \override Score . RehearsalMark #'self-alignment-X = #left<br />
\once \override Score . RehearsalMark #'extra-spacing-width = #'(+inf.0 . -inf.0)