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 121<br />

b2\fermata<br />

<br />

<br />

<br />

<br />

<br />

<br />

% This will not work, see below<br />

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

\tempo 4 = 120<br />

c1 |<br />

% This works<br />

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

\tempo 4 = 80<br />

d1 |<br />

<br />

<br />

= 120<br />

= 80<br />

<br />

Note in the second example how important it is to figure out what context handles a certain<br />

object. Since the MetronomeMark object is handled in the Score context, property changes in<br />

the Voice context will not be noticed. For more details, see Sectie “Modifying properties” in<br />

Notatie-handleiding.<br />

If the padding property of an object is increased when that object is in a stack of objects<br />

being positioned according to their outside-staff-priority, then that object and all objects<br />

outside it are moved.<br />

The right-padding property<br />

The right-padding property affects the spacing between the accidental and the note to which<br />

it applies. It is not often required, but the default spacing may be wrong for certain special<br />

accidental glyphs or combination of glyphs used in some microtonal music. These have to be<br />

entered by overriding the accidental stencil with a markup containing the desired symbol(s), like<br />

this:<br />

sesquisharp = \markup { \sesquisharp }<br />

\relative c'' {<br />

c4<br />

% This prints a sesquisharp but the spacing is too small<br />

\once \override Accidental.stencil = #ly:text-interface::print<br />

\once \override Accidental.text = #sesquisharp<br />

cis4 c<br />

% This improves the spacing<br />

\once \override Score.AccidentalPlacement.right-padding = #0.6<br />

\once \override Accidental.stencil = #ly:text-interface::print<br />

\once \override Accidental.text = #sesquisharp<br />

cis4 |<br />

}

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

Saved successfully!

Ooh no, something went wrong!