peaks.js icon indicating copy to clipboard operation
peaks.js copied to clipboard

What method can we use to draw the whole waveform?

Open ChaoshengZhang opened this issue 5 years ago • 3 comments

What method can we use to draw the whole waveform?

ChaoshengZhang avatar Feb 21 '19 01:02 ChaoshengZhang

Hi, @ChaoshengZhang, can do describe what you want to do in more detail?

chrisn avatar Feb 21 '19 20:02 chrisn

I want to know how to draw the whole audio waveform directly. I hope you can help me answer the questions. Thank you. Is it the HTML 5 API or something else, I hope you can provide some ideas. Thank you. 我想知道,通过什么方法直接绘制整个音频的波形图的,希望你们帮我解答疑惑,谢谢你。是html5的api还是什么其他的,希望你可以提供一下思路。谢谢你。

ChaoshengZhang avatar Feb 26 '19 09:02 ChaoshengZhang

I recommend that you look at our waveform-data.js module. The ReadMe has some example code that shows how to draw a waveform using the HTML Canvas API.

chrisn avatar Feb 28 '19 20:02 chrisn