A tool to shorten a lot of audio files (Solved)

Sampler and Sampling discussion (techniques, tips and tricks, etc.)
Post Reply New Topic
RELATED
PRODUCTS

Post

Hi everyone!

I have some wave files (44.1khz/24bit/stereo) which are all 3 minutes long. Is there a (free) tool for Windows which can shorten them all to 20 seconds?
It just needs to cut out the first 20 seconds.

Thanks in advance :)

Cheers
Dennis
Last edited by Bronto Scorpio on Sun Nov 06, 2011 5:25 am, edited 1 time in total.

Post

Sorry, I'm to dumb for this world :dog:

I just noticed that this can easily be done with Audacity. It's not perfect but it works.
I just need to import all the files, select everything behind 20 seconds and export the files again :oops:

Sorry for the waste of your time!

Cheers
Dennis

Post

Bronto Scorpio wrote:Sorry, I'm to dumb for this world :dog:

I just noticed that this can easily be done with Audacity. It's not perfect but it works.
I just need to import all the files, select everything behind 20 seconds and export the files again :oops:

Sorry for the waste of your time!

Cheers
Dennis
There is no waste of time, thanks to you now we know we can do such things with Audacity ;)

Have a good day :)
Image

Post

For scripted/batch stuff SoX command line utilities might be of use for some things as well... like format conversions, resampling, trimming, fading, concatenating, chopping, etc.

http://sox.sourceforge.net/

Of course, you would need some minimal knowledge of windows batch or unix shell (linux, osx) scripting... They have various examples here if you're not familiar: http://sox.sourceforge.net/Docs/Scripts

Off the top of my head, a shell command line to do what you asked would be something like this:

Code: Select all

mkdir trimmed; for f in '/usr/bin/ls -1 *.wav'; do echo ${f}; sox ${f} trimmed/${f} fade p 0 00:00:20.0 1; done
That would create a subdirectory called "trimmed", then for each wav in current directory apply 1-second inverse parabola fade at 20 second mark (which will also trim the input to 20 seconds), and write new wav to trimmed directory...

Post

kbaccki wrote:For scripted/batch stuff SoX command line utilities might be of use for some things as well... like format conversions, resampling, trimming, fading, concatenating, chopping, etc.

http://sox.sourceforge.net/

Of course, you would need some minimal knowledge of windows batch or unix shell (linux, osx) scripting... They have various examples here if you're not familiar: http://sox.sourceforge.net/Docs/Scripts

Off the top of my head, a shell command line to do what you asked would be something like this:

Code: Select all

mkdir trimmed; for f in '/usr/bin/ls -1 *.wav'; do echo ${f}; sox ${f} trimmed/${f} fade p 0 00:00:20.0 1; done
That would create a subdirectory called "trimmed", then for each wav in current directory apply 1-second inverse parabola fade at 20 second mark (which will also trim the input to 20 seconds), and write new wav to trimmed directory...
Looks interesting and could do a lot of stuff I often need way faster then my current workflow. Thanks for the suggestion! :)

Cheers
Dennis

Post

While you're at it, check out "cygwin"... it's a free unix emulation layer for windows (if you're using windows). Personally hate windows batch scripting. So klunky and hard to remember the syntax. Unix shell is much more powerful in general, esp. for name translations and such. You could use the windows sox binaries in combination w/ cygwin shell scripting.

Post

kbaccki wrote:While you're at it, check out "cygwin"... it's a free unix emulation layer for windows (if you're using windows). Personally hate windows batch scripting. So klunky and hard to remember the syntax. Unix shell is much more powerful in general, esp. for name translations and such. You could use the windows sox binaries in combination w/ cygwin shell scripting.
I'll try that! Thanks :tu:

Cheers
Dennis

Post

If you try cygwin and need help setting up your (unix) environment, shell commands, scripting, etc. give me a shout.

Post Reply

Return to “Samplers, Sampling & Sample Libraries”