Elementary waveform generator