adjustable trapezoidal waveform
Quick suggestions:

Does linearity matter?  If so, spec. it.

If you compute derivative and create those pulses, then a true integrator OA will result in your signal after initialization.

Consider a Howland Current Source, use cascaded 1-shot to set the current level with an analog switch to a preset voltage. 

Plan B based on limited specs.