update: made more generalized

can generate impulse, clicktrains, puretones, sawtooth waveforms