27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Expressive marks 51<br />

}<br />

}<br />

\breathe c4<br />

% set the breathe mark back to normal<br />

\revert BreathingSign #'text<br />

c2. \breathe c4<br />

\bar "|."<br />

}<br />

<br />

<br />

<br />

<br />

<br />

<br />

Center text below hairpin dynamics<br />

<br />

<br />

This example provides a function to typeset a hairpin (de)crescendo with some additional text<br />

below it, such as "molto" or "poco". The example also illustrates how to modify the way an<br />

object is normally printed, using some Scheme code.<br />

hairpinWithCenteredText =<br />

#(define-music-function (parser location text) (markup?)<br />

#{<br />

\override Voice.Hairpin #'stencil = #(lambda (grob)<br />

(ly:stencil-aligned-to<br />

(ly:stencil-combine-at-edge<br />

(ly:stencil-aligned-to (ly:hairpin::print grob) X CENTER)<br />

Y DOWN<br />

(ly:stencil-aligned-to (grob-interpret-markup grob $text) X CENTER))<br />

X LEFT))<br />

#})<br />

hairpinMolto = \hairpinWithCenteredText \markup { \italic molto }<br />

hairpinMore = \hairpinWithCenteredText \markup { \larger moltissimo }<br />

\layout { ragged-right = ##f }<br />

\relative c' {<br />

\hairpinMolto<br />

c2\< c\f<br />

\hairpinMore<br />

c2\< c\f<br />

}<br />

<br />

<br />

<br />

molto<br />

<br />

f<br />

Changing \flageolet mark size<br />

<br />

moltissimo<br />

To make the \flageolet circle smaller use the following Scheme function.<br />

<br />

f

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

Saved successfully!

Ooh no, something went wrong!