\version "2.12.0" \header { texidoc = "The standard piano pedals style comes with Ped symbols. The pedal string can be also tuned, for example, to a shorter tilde/P variant at the end of the melody." } sustainNotes = { c4 \sustainOn d e \sustainOff \sustainOn f \sustainOff } \relative c'{ \sustainNotes \set Staff.pedalSustainStrings = #'("P" "P-" "-") \sustainNotes \set Staff.pedalSustainStrings = #'("d" "de" "e") \sustainNotes \set Staff.pedalSustainStrings = #'("M" "M-" "-") \sustainNotes \set Staff.pedalSustainStrings = #'("Ped" "Ped*" "*") \sustainNotes }