A quick script to strip silence from the end of a folder full of audio files using sox from the terminal.
this will create a subdirectory called ‘trimmed’ and output the new files to it.
for file in *.wav
sox "$file" "trimmed/$file" silence 1 0.05 0.003% -1 0.05 0.003%
The crucial bit here is the 0.003%, that sets the threshold below which to trim.
You can also normalise the files at the same time using the —norm switch
for file in *.wav
sox "$file" --norm "trimmed/$file" silence 1 0.05 0.003% -1 0.05 0.003%
If you are trying to get started with mxj dev on OS X 10.8 Mountain Lion it is quite likely you will run into this error message in Max Window
java.lang.UnsupportedClassVersionError: HelloWorld : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
Could not load class 'HelloWorld'
Basiically, you need to go and get Java 1.6 JDK and install it. This can be got via the apple developer portal, the package you are looking for is “Java for OS X 2013-003 Developer Package” .you will then probably need to update your project/build config to reference the newly installed JDK which should now be at ‘/Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home’. I will leave that as an exercise for the reader.
Max For Live delay time calculator device →
A really simple Delay Time Calculator built in Max For Live. I knocked this up for myself for something specific, but thought I might as well share it with the world. Enjoy or ignore, I am easy :)
Homemade 5v power for a doepfer eurorack buss board
I recently had to copy some really large files (128GB) via an SSH session to a server. Using plain old ‘cp source dest’ would stop working if the SSH session was disconnected. My solution was to fork the process using a command like this
sh -c "cp ~/somefile ~/some/other/place >/dev/null 2>&1 &"
Mix I did for the Axon Rec pod cast