Reputation: 141
I would like to know how soundcloud generate their waveforms.
Thanks
Upvotes: 1
Views: 2098
Reputation: 640
Soundcloud analyzes the waveform serverside. They used to serve 1800 pix wide png bitmaps representing the waveform uptil august 2015. Since then they also serve a JSON object with the peak-data.
Take a look at this thread for use of the web audio API for this purpose: Create a waveform of the full track with Web Audio API
And this project does a serverside waveToJSON: https://github.com/cargan/wave-form-player.
Upvotes: 1
Reputation: 66
It is done through HTML5 canvas (a simple right click on the element can show you that), so it is generated on the client side.
There are some libraries handling this. One of it is WaveSurfer.
Upvotes: 5