A simple waveform generator.