View Single Post
  #3   Report Post  
Posted to rec.audio.pro,alt.perl,comp.sys.mac.programmer,comp.lang.perl
Gary Morrison
 
Posts: n/a
Default Concatenating Audio Files in with Perl on a Mac

Chel van Gennip wrote:

I hope you are using OS X and have some knowledge of the Unix system, as
it is convenient for scripting.


"Yes" to both. I've done a bit of Perl scripting on my Sun workstation
at work.

Make a script that, using SOX strips
headers and if needed convert to the same samplerate, samplewidth, etc.,
and outputs raw audio data to stdout. Input this raw datastream in SOX
through stdin to generate a WAF or AIIF file. http://sox.sourceforge.net/


Ya know, thinking back a long time ago (I think it was around the time
when MacOS 7 first came out!), I wrote some code code to dork around
with AIFF files. I may be able to resurrect and adapt that code for
doing the actual opening and writing of the AIFF files themselves. If I
can find it, that is!

--

(Preferably reply to the newsgroup, please. If you reply by Email, I
will sincerely try to receive your message, but it will probably get
buried in spam.)