Batch sample conversion

Post Reply
User avatar
Jay200MPH
Posts: 21
Joined: Mon Dec 12, 2011 4:00 am
Location: Auckland+Toronto

Batch sample conversion

Post by Jay200MPH »

I have quite a lot of samples of various drum machines. These are in a big, nested directory structure organized by machine, and are all in wav format. Some of them are recorded as 24 bit stereo for absolutely no valid reason.

What I'd like to do is run some kind of script that goes through the entire structure, picks out every sample and does this:

If: sample is 8-bit or 16-bit mono, don't touch it.
If: sample is 8-bit or 16-bit stereo, downmix to mono (or separate into L and R channels) but don't touch bitrate.
If: sample is >16 bits, convert to 16-bit (preferably using some nice shaping algorithm) and downmix to mono if necessary.

Any ideas how to do this? I can use Windows or Linux. Don't need anything fancy, some sort of command-line batch script would work fine.
User avatar
pbhs
Posts: 13
Joined: Tue Dec 13, 2011 8:34 am
Location: Venice - Italy

Re: Batch sample conversion

Post by pbhs »

Maybe the answer can be "ffmpeg" http://ffmpeg.org/
or maybe "Sox". http://sox.sourceforge.net/
nogginj
Posts: 3
Joined: Tue Jan 24, 2012 5:54 pm

Re: Batch sample conversion

Post by nogginj »

definitely sox + maybe soxi (to determine bit).
mute
Posts: 417
Joined: Mon Nov 21, 2011 8:30 pm

Re: Batch sample conversion

Post by mute »

I've been using Awave for 10+ years...at least.

http://www.fmjsoft.com/awframe.html

If you use Adobe Audition (or even CEP..if anyone still does), it has a really good batch/processing system that is incredibly easy to setup.
Post Reply