added a waveform visualizer