On Thu, 2005-04-07 at 07:55 +0900, Matthew Margolis wrote:
> I am working with a band right now and they want samples of all their 
> songs made so that they can post music on their site without giving 
> everything away.  The samples should be about 20 seconds long and mp3 
> files.  There are quite a few files that need to be sampled so I am 
> looking for a fast and automated way to create files that are only 20 
> seconds long.  Is there any ruby library that might be applicable to 
> this challenge? 

I think there's a ruby-soundfile, but honestly, if you're on unix, I'd
be shelling out to sox. I might use Ruby (or Rake!) to automate it, but
I'd let `sox` do the dirty work.

Ari