#### 3.10.3 Pedals

Pianos have pedals that alter the way sound are produced. Generally, a piano has three pedals, sustain, una corda, and sostenuto.

Piano pedal instruction can be expressed by attaching `\sustainDown`, `\sustainUp`, `\unaCorda`, `\treCorde`, `\sostenutoDown` and `\sostenutoUp` to a note or chord

>          c'4\sustainDown c'4\sustainUp

What is printed can be modified by setting `pedal` X `Strings`, where X is one of the pedal types: `Sustain`, `Sostenuto` or `UnaCorda`. Refer to SustainPedal in the program reference for more information.

Pedals can also be indicated by a sequence of brackets, by setting the `pedalSustainStyle` property to `bracket` objects

>          \set Staff.pedalSustainStyle = #'bracket
>          c\sustainDown d e
>          b\sustainUp\sustainDown
>          b g \sustainUp a \sustainDown \bar "|."

A third style of pedal notation is a mixture of text and brackets, obtained by setting the `pedalSustainStyle` style property to `mixed`

>          \set Staff.pedalSustainStyle = #'mixed
>          c\sustainDown d e
>          b\sustainUp\sustainDown
>          b g \sustainUp a \sustainDown \bar "|."

The default `*Ped.' style for sustain and damper pedals corresponds to style `#'text`. The sostenuto pedal uses `mixed` style by default.

>          c\sostenutoDown d e c, f g a\sostenutoUp

For fine-tuning of the appearance of a pedal bracket, the properties `edge-width`, `edge-height`, and `shorten-pair` of `PianoPedalBracket` objects (see PianoPedalBracket in the Program reference) can be modified. For example, the bracket may be extended to the end of the note head

>          \override Staff.PianoPedalBracket
>             #'shorten-pair = #'(0 . -1.0)
>          c\sostenutoDown d e c, f g a\sostenutoUp

Read comments on this page, or add one. This page is for LilyPond-2.2.5 (stable-branch).