Batch sample conversion
Posted: Sat Nov 24, 2012 10:32 pm
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.
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.