A slur indicates that notes are to be played bound or legato.
They are entered using parentheses:
f( g)( a) a8 b( a4 g2 f4) <c e>2( <b d>2)
Slurs avoid crossing stems, and are generally attached to note heads.
However, in some situations with beams, slurs may be attached to stem
ends. If you want to override this layout you can do this through the
object property attachment
of Slur in
Voice context. Its value is a pair of symbols, specifying
the attachment type of the left and right end points:
\slurUp \property Voice.Stem \set #'length = #5.5 g'8(g g4) \property Voice.Slur \set #'attachment = #'(stem . stem) g8( g g4)
If a slur would strike through a stem or beam, the slur will be moved away upward or downward. If this happens, attaching the slur to the stems might look better:
\stemUp \slurUp d32( d'4 d8..) \property Voice.Slur \set #'attachment = #'(stem . stem) d,32( d'4 d8..)
\slurUp
,
\slurDown
,
\slurBoth
,
\slurDotted
,
\slurSolid
.
Producing nice slurs is a difficult problem, and LilyPond currently uses a simple, empiric method to produce slurs. In some cases, its results are ugly.
This page is for LilyPond-2.0.1 (stable-branch).