\version "2.7.13"

\header {

    texidoc = "The brackets of a piano pedal should start and end at
 the left side of the note. If a note is shared between two brackets,
 these ends are flared.

At a line-break, there are no vertical endings.  " }

\score {
     \relative c'' {
        \set Staff.pedalSustainStyle = #'bracket

        c4 d e \sustainDown b c c, \sustainUp \sustainDown  d8[ c]  e8[ 
	    e \sustainUp \sustainDown]  f4 d
        \sustainUp g \sustainDown b b, \sustainUp c'

        \set Staff.pedalUnaCordaStyle = #'mixed

        c4 d \unaCorda e f g
        b  | \break c b c \treCorde c
    }
    \layout { raggedright = ##t }
}
