JS Player
So, there’s no native Ruby mp3 player which could decode an mp3 into a WAV/PCM file. However, creating a waveform graph from a PCM/WAV file is actually fairly trivial. The data of the file can be read and parsed into plot points for a rendering. But the problem is that mp3 starting point. So, I’ve put off implementation of that feature for now.
I have, however, implemented an audio player in JS (I’m only using mp3s for now, sorry FireFox users). It has a progress bar and clicking on the div skips to a point in the song relative to where in the div the user has clicked. For example in a 2 minute song clicking in the middle of the div would take the user to the 1 minute mark and clicking 2/3 of the way from the left side of the div would take the user to the 1:20 mark in the song. Huzzah!
Now onto comments.