midi: velocity scaling

Hey all, another noob question, maybe someone knows how to do this…

Is there a way to scale the velocities of notes coming from a midi keyboard? ie. clamp values to a certain range, or change the velocity curve to a more “exponential” one? …or maybe even remap each of the values from 0 to 127??

Maybe there’s an external program which could do this and then somehow feed the midi data to renoise?