Many research fields need special high-voltage pulses in pulsed power applications, which are different from typical rectangular pulses. In this paper, a high-voltage waveform modulator of two methods using a solid-state Marx generator has been developed and tested. Instead of manufacturing a generator with a specialized structure, the modulator can control a general Marx generator by low-voltage programmable logic devices to produce an irregular but controllable high-voltage triangular pulse with pulse length of ~4.5 and peak voltage of ~123 kV.