[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

chopping up a music file

Matthew Margolis

4/6/2005 10:56:00 PM

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?


Thank you,
Matthew Margolis


6 Answers

Aria Stewart

4/6/2005 10:58:00 PM

0

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



Robby Russell

4/6/2005 11:39:00 PM

0

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?
>

Try this for some examples of using sox:

http://www.oreillynet.com/pu...

-Robby

--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP, Ruby, and PostgreSQL Development
* http://www.robbyon...
****************************************/



Matthew Margolis

4/6/2005 11:56:00 PM

0

Thanks unfortunately I am stuck on a windows box for the few weeks as my
linux box is halfway across the country and shut off. I guess I can
just look into using some sort of cheap commercial sound software.
If anyone else knows of a solution I would love to know.

-Matthew


Aredridel wrote:

>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
>
>
>
>



Robby Russell

4/7/2005

0

On Thu, 2005-04-07 at 08:55 +0900, Matthew Margolis wrote:
> Thanks unfortunately I am stuck on a windows box for the few weeks as my
> linux box is halfway across the country and shut off. I guess I can
> just look into using some sort of cheap commercial sound software.
> If anyone else knows of a solution I would love to know.
>
> -Matthew

sox for windows:

http://www.hitsquad.com/smm/program...

-RObby

--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP, Ruby, and PostgreSQL Development
* http://www.robbyon...
****************************************/



Matthew Margolis

4/7/2005 12:10:00 AM

0

Dead site.

-Matthew


Robby Russell wrote:

>On Thu, 2005-04-07 at 08:55 +0900, Matthew Margolis wrote:
>
>
>>Thanks unfortunately I am stuck on a windows box for the few weeks as my
>>linux box is halfway across the country and shut off. I guess I can
>>just look into using some sort of cheap commercial sound software.
>>If anyone else knows of a solution I would love to know.
>>
>>-Matthew
>>
>>
>
>sox for windows:
>
>http://www.hitsquad.com/smm/program...
>
>-RObby
>
>
>



Robby Russell

4/7/2005 12:18:00 AM

0

There is a binary on this page:

http://sox.source...

-Robby

On Thu, 2005-04-07 at 09:09 +0900, Matthew Margolis wrote:
> Dead site.
>
> -Matthew
>
>
> Robby Russell wrote:
>
> >On Thu, 2005-04-07 at 08:55 +0900, Matthew Margolis wrote:
> >
> >
> >>Thanks unfortunately I am stuck on a windows box for the few weeks as my
> >>linux box is halfway across the country and shut off. I guess I can
> >>just look into using some sort of cheap commercial sound software.
> >>If anyone else knows of a solution I would love to know.
> >>
> >>-Matthew
> >>
> >>
> >
> >sox for windows:
> >
> >http://www.hitsquad.com/smm/program...
> >
> >-RObby
> >
> >
> >
>
>
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP, Ruby, and PostgreSQL Development
* http://www.robbyon...
****************************************/