10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

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.

Tweaks and overrides 394<br />

Chang<strong>in</strong>g text and spanner styles for text dynamics<br />

The text used for crescendos and decrescendos can be changed by modify<strong>in</strong>g the context properties<br />

crescendoText and decrescendoText.<br />

The style of the spanner l<strong>in</strong>e can be changed by modify<strong>in</strong>g the 'style property of<br />

DynamicTextSpanner. The default value is 'dashed-l<strong>in</strong>e, and other possible values <strong>in</strong>clude<br />

'l<strong>in</strong>e, 'dotted-l<strong>in</strong>e and 'none.<br />

\relative c'' {<br />

\set crescendoText = \markup { \italic { cresc. poco } }<br />

\set crescendoSpanner = #'text<br />

\override DynamicTextSpanner #'style = #'dotted-l<strong>in</strong>e<br />

a2\< a<br />

a2 a<br />

a2 a<br />

a2 a\mf<br />

}<br />

<br />

<br />

<br />

cresc. poco mf<br />

Chang<strong>in</strong>g the default text font family<br />

The default font families for text can be overridden with make-pango-font-tree.<br />

\paper {<br />

% change for other default global staff size.<br />

myStaffSize = #20<br />

%{<br />

run<br />

lilypond -dshow-available-fonts blabla<br />

to show all fonts available <strong>in</strong> the process log.<br />

%}<br />

#(def<strong>in</strong>e fonts<br />

(make-pango-font-tree "Times New Roman"<br />

"Nimbus Sans"<br />

"Luxi Mono"<br />

;; "Helvetica"<br />

;; "Courier"<br />

(/ myStaffSize 20)))<br />

}<br />

\relative c'' {<br />

c4^\markup {<br />

roman: foo \bold bla \italic bar \italic \bold baz<br />

}<br />

c'4_\markup {<br />

\override #'(font-family . sans)<br />

{<br />

sans: foo \bold bla \italic bar \italic \bold baz<br />

}

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

Saved successfully!

Ooh no, something went wrong!