Waveform buffer