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
There is no waste of time, thanks to you now we know we can do such things with AudacityBronto Scorpio wrote:Sorry, I'm to dumb for this world
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
Sorry for the waste of your time!
Cheers
Dennis
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; doneLooks interesting and could do a lot of stuff I often need way faster then my current workflow. Thanks for the suggestion!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:
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...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
I'll try that! Thankskbaccki 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.
Submit: News, Plugins, Hosts & Apps | Advertise @ KVR | Developer Account | About KVR / Contact Us | Privacy Statement
© KVR Audio, Inc. 2000-2026