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.

Tweaks and overrides 325<br />

<br />

<br />

<br />

<br />

Line arrows<br />

<br />

<br />

Arrows can be applied to text-spanners and line-spanners (such as the Glissando).<br />

\relative c'' {<br />

\override TextSpanner #'bound-padding = #1.0<br />

\override TextSpanner #'style = #'line<br />

\override TextSpanner #'(bound-details right arrow) = ##t<br />

\override TextSpanner #'(bound-details left text) = #"fof"<br />

\override TextSpanner #'(bound-details right text) = #"gag"<br />

\override TextSpanner #'(bound-details right padding) = #0.6<br />

}<br />

\override TextSpanner #'(bound-details right stencil-align-dir-y) = #CENTER<br />

\override TextSpanner #'(bound-details left stencil-align-dir-y) = #CENTER<br />

\override Glissando #'(bound-details right arrow) = ##t<br />

\override Glissando #'arrow-length = #0.5<br />

\override Glissando #'arrow-width = #0.25<br />

a8\startTextSpan gis a4 b\glissando b,<br />

g'4 c\stopTextSpan c2<br />

<br />

<br />

fof<br />

<br />

<br />

<br />

<br />

<br />

gag<br />

<br />

Making an object invisible with the ’transparent property<br />

Setting the transparent property will cause an object to be printed in "invisible ink": the<br />

object is not printed, but all its other behavior is retained. The object still takes up space, it<br />

takes part in collisions, and slurs, ties and beams can be attached to it.<br />

This snippet demonstrates how to connect different voices using ties. Normally, ties only<br />

connect two notes in the same voice. By introducing a tie in a different voice, and blanking the<br />

first up-stem in that voice, the tie appears to cross voices.<br />

\relative c'' {<br />

\time 2/4<br />

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

Saved successfully!

Ooh no, something went wrong!