Waveform collapse function generator