The figure shows how to convert a rectangular signal into a triangular signal using an integrator. The circuit is from a Radio Electronics magazine from June 1972. The operational IC can be of any type and C depends on the frequency.