Algorithm to draw waveform from audio

后端 未结 7 1162
不思量自难忘°
不思量自难忘° 2021-01-31 12:06

I\'m trying to draw a waveform from a raw audio file. I demuxed/decoded an audio file using FFmpeg and I have those informations: samples buffer, the size of the samples buffer,

7条回答
  •  一整个雨季
    2021-01-31 12:39

    The bottom graphs simply include a longer time span, so if you increased your numSamples you would get a tighter graph. But with white noise you wont see the peaks and troughs that you will find in normal sounds / music.

    So if you can increase your sample size, or at least increase your sample period (x-axis) you will start to emulate the bottom charts. Use two of them to get the stereo effect.

提交回复
热议问题