Turn off pitchbending note.
set Pitchbend target = adsr4
set Pitchbend amount = -50
Now you can use right side of the pitchbend as sustain pedal
Turn off pitchbending note.
set Pitchbend target = adsr4
set Pitchbend amount = -50
Now you can use right side of the pitchbend as sustain pedal