use waveformjs to gen waveform