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.

Expressive marks 85<br />

}<br />

(-5 . ,DOWN)<br />

(-3 . ,UP)<br />

(-1 . ,UP))<br />

4\laissezVibrer r<br />

<br />

<br />

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

<br />

<br />

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

\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 slurs with complex dash structure<br />

Slurs can be made with complex dash patterns by def<strong>in</strong><strong>in</strong>g the dash-def<strong>in</strong>ition property.<br />

dash-def<strong>in</strong>ition is a list of dash-elements. A dash-element is a list of parameters def<strong>in</strong><strong>in</strong>g<br />

the dash behavior for a segment of the slur.<br />

The slur is def<strong>in</strong>ed <strong>in</strong> terms of the bezier parameter t which ranges from 0 at the left<br />

end of the slur to 1 at the right end of the slur. dash-element is a list (start-t stop-t<br />

dash-fraction dash-period). The region of the slur from start-t to stop-t will have a<br />

fraction dash-fraction of each dash-period black. dash-period is def<strong>in</strong>ed <strong>in</strong> terms of staff<br />

spaces. dash-fraction is set to 1 for a solid slur.<br />

\relative c' {<br />

\once \override<br />

Slur #'dash-def<strong>in</strong>ition = #'((0 0.3 0.1 0.75)<br />

(0.3 0.6 1 1)<br />

(0.65 1.0 0.4 0.75))

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

Saved successfully!

Ooh no, something went wrong!