forked from: soundraw

drag mouse: draw waveform
press key: reset waveform