Generating waveform images from mp3 or wav?

I’m looking at trying to build a php or perl script that will generate waveform images in either png or jpg from a wav or mp3. Does anyone have prior experience doing this on dreamhost? If so, please let me know your thoughts. No need to reinvent the wheel if someone’s already done it for me, right? :slight_smile:

I’m fairly good at working with text and images (w/ imagemagick) in php and perl, but I don’t have much scripting experience working with audio formats. Ideally, whatever I implement would not be too taxing on the cpu and would hopefully be relatively quick to process.

Here are some output examples of what I’d like to do…*.html