Synthesize a pulse signal with harmonic oscillators