10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Tweaks and overrides 410<br />

\relative c' {<br />

c1<br />

\set Score.markFormatter =<br />

#(lambda (mark context)<br />

(make-circle-markup (format-mark-numbers mark context)))<br />

\mark \default<br />

}<br />

c2 d^\markup {<br />

\override #'(thickness . 3) {<br />

\circle \f<strong>in</strong>ger 2<br />

}<br />

}<br />

\override Score.BarNumber #'break-visibility = #all-visible<br />

\override Score.BarNumber #'stencil =<br />

#(make-stencil-circler 0.1 0.25 ly:text-<strong>in</strong>terface::pr<strong>in</strong>t)<br />

<br />

<br />

1<br />

2<br />

<br />

3<br />

Dynamics custom text spanner postfix<br />

Postfix functions for custom crescendo text spanners. The spanners should start on the first note<br />

of the measure. One has to use -\mycresc, otherwise the spanner start will rather be assigned<br />

to the next note.<br />

% Two functions for (de)crescendo spanners where you can explicitly give the<br />

% spanner text.<br />

mycresc =<br />

#(def<strong>in</strong>e-music-function (parser location mymarkup) (markup?)<br />

(make-music 'CrescendoEvent<br />

'span-direction START<br />

'span-type 'text<br />

'span-text mymarkup))<br />

mydecresc =<br />

#(def<strong>in</strong>e-music-function (parser location mymarkup) (markup?)<br />

(make-music 'DecrescendoEvent<br />

'span-direction START<br />

'span-type 'text<br />

'span-text mymarkup))<br />

\relative c' {<br />

c4-\mycresc "custom cresc" c4 c4 c4 |<br />

c4 c4 c4 c4 |<br />

c4-\mydecresc "custom decresc" c4 c4 c4 |<br />

c4 c4\! c4 c4<br />

}<br />

<br />

<br />

<br />

custom cresc<br />

custom decresc

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

Saved successfully!

Ooh no, something went wrong!