Next: , Up: Expressive marks



3.7.1 Slurs

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)

[image of music]

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. Its value is a pair of symbols, specifying the attachment type of the left and right end points

     \slurUp
     \override Stem #'length = #5.5
     g'8(g g4)
     \override Slur #'attachment = #'(stem . stem)
     g8( g g4)

[image of music]

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..)
     \override Slur #'attachment = #'(stem . stem)
     d,32( d'4 d8..)

[image of music]

Predefined commands

\slurUp, \slurDown, \slurBoth, \slurDotted, \slurSolid.

See also

Program reference: Slur, and SlurEvent.

Bugs

Producing nice slurs is a difficult problem, and LilyPond uses a simple, empiric method to produce slurs. In some cases, its results are ugly.

Read comments on this page, or add one.

This page is for LilyPond-2.2.6 (stable-branch).

Report errors to <bug-lilypond@gnu.org>.