Live version of: »Rendering Sustain Pedal Data to Note Lengths«

Does someone know about a possibility to convert live midi data sustain messages to note lengths?
I don’t think cubase can do this, is there some kind of plugin that maybe can do this?

I have a buggy VST-plugin which sometimes drops notes in sustain. I can use »Functions → Midi → Rendering Sustain Pedal Data to Note Lengths« after recording, there’s no problem with that. But sometimes I would like to hear everything without gaps while playing.

Nothing to overly important, just if someone should have a plugin in use that’s working, I would appretiate any suggestions.

Cheers.