Time controlled MIDI CC's

Hi Guys ,

Was wondering if it is possible to have a MIDI output CC message go from 0 - 127 over a user defined time . Ie have a pot control the speed in which the CC reaches 127. And then have a further switch to reverse the direction. Sort of like the Digitech Ricochet but for MIDI.

Any thoughts on this ?