See https://github.com/xigh/go-waveform/issues/1 for the same reference
See xigh/go-waveform#1 for the same reference