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

}<br />

\clef "bass"<br />

c1<br />

\clef "treble"<br />

c1<br />

<br />

<br />

<br />

<br />

L<strong>in</strong>e arrows<br />

<br />

<br />

<br />

<br />

<br />

<br />

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

\relative c'' {<br />

\override TextSpanner #'bound-padd<strong>in</strong>g = #1.0<br />

\override TextSpanner #'style = #'l<strong>in</strong>e<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 padd<strong>in</strong>g) = #0.6<br />

}<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 />

fof<br />

gag<br />

<br />

<br />

<br />

Mak<strong>in</strong>g an object <strong>in</strong>visible with the ’transparent property<br />

Sett<strong>in</strong>g the transparent property will cause an object to be pr<strong>in</strong>ted <strong>in</strong> “<strong>in</strong>visible <strong>in</strong>k”: the<br />

object is not pr<strong>in</strong>ted, but all its other behavior is reta<strong>in</strong>ed. The object still takes up space, it<br />

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

This snippet demonstrates how to connect different voices us<strong>in</strong>g ties. Normally, ties only<br />

connect two notes <strong>in</strong> the same voice. By <strong>in</strong>troduc<strong>in</strong>g a tie <strong>in</strong> a different voice, and blank<strong>in</strong>g the<br />

first up-stem <strong>in</strong> 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!