09.09.2013 Views

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Hoofdstuk 4: Tweaking output 116<br />

c2^"Text3"<br />

c2^"Text4" |<br />

<br />

Text1<br />

<br />

Text2 Text3<br />

<br />

Text4<br />

<br />

The command to revert to the default behavior is \textLengthOff. Remember \once only<br />

works with \override, \set, \revert or \unset, so cannot be used with \textLengthOn.<br />

Markup text will also avoid notes which project above the staff. If this is not desired, the<br />

automatic displacement upwards may be turned off by setting the priority to #f. Here’s an<br />

example to show how markup text interacts with such notes.<br />

% This markup is short enough to fit without collision<br />

c2^"Tex" c'' |<br />

R1 |<br />

% This is too long to fit, so it is displaced upwards<br />

c,,2^"Text" c'' |<br />

R1 |<br />

% Turn off collision avoidance<br />

\once \override TextScript.outside-staff-priority = ##f<br />

c,,2^"Long Text " c'' |<br />

R1 |<br />

% Turn off collision avoidance<br />

\once \override TextScript.outside-staff-priority = ##f<br />

\textLengthOn % and turn on textLengthOn<br />

c,,2^"Long Text " % Spaces at end are honored<br />

c''2 |<br />

Tex<br />

<br />

<br />

Dynamics placement<br />

Text<br />

<br />

Long Text Long Text<br />

<br />

Dynamic markings will normally be positioned beneath the staff, but may be positioned above<br />

with the \dynamicUp command. They will be positioned vertically relative to the note to which<br />

they are attached, and will float below (or above) all within-staff objects such as phrasing slurs<br />

and bar numbers. This can give quite acceptable results, as this example shows:<br />

\clef "bass"<br />

\key aes \major<br />

\time 9/8<br />

\dynamicUp<br />

bes4.~\f\< \( bes4 bes8 des4\ff\> c16 bes\! |<br />

ees,2.~\)\mf ees4 r8 |

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

Saved successfully!

Ooh no, something went wrong!