Dear All,
I've tinkered about some more with partial pedalling and gradual sustain pedal
release, and here's some code (some of it copied/adapted from the internet)
that seems to work, even though in some respects it shouldn't:
\version "2.20.0"
\relative c'' {
\set Staff.pedalSustainStyle = #'bracket
% 1. standard sustain pedal behaviour
c1\sustainOn c \sustainOff \sustainOn c\sustainOff c
% 2. gradual pedal release indicated by dashed line
\once \override Staff.PianoPedalBracket.edge-height = #' (1 . 0)
c1\sustainOn
\once \override Staff.PianoPedalBracket.bracket-flare = #'(0 . 14.5)
\once \override Staff.PianoPedalBracket.edge-height = #' (0 . 1)
\once \override Staff.PianoPedalBracket.style = #'dashed-line
c \sustainOff \sustainOn
c c4\sustainOn \sustainOff c c c
% 3. 1/2 pedal instruction
\set Staff.pedalSustainStyle = #'mixed
\once \override Staff.PianoPedalBracket.edge-height = #' (0 . 1)
\override Staff.PianoPedalBracket.bracket-flare = #'(8 . 0)
\once \override Staff.SustainPedal #'stencil =
#(lambda (grob) (grob-interpret-markup grob (markup "½")))
c1\sustainOn c c \sustainOff
}
In the second snippet, the slanted pedal release line ONLY works if \sustainOff
in the final line is preceded by \sustainOn; otherwise the line remains
horizontal.
It doesn't make complete sense to me, since there's already a \sustainOn in the
preceding line. So this is probably isn't how it's supposed to be done, but for
now it offers a simple way of notating gradual sustain pedal release.
Jan