fader

TR20 – ROAD SINES – Kyubu Records →

Strip silence from the end of an audio file

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.

mkdir trimmed
for file in *.wav
do
   sox "$file" "trimmed/$file" silence 1 0.05 0.003% -1 0.05 0.003%
done

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

mkdir trimmed
for file in *.wav
do
   sox "$file" --norm "trimmed/$file" silence 1 0.05 0.003% -1 0.05 0.003%
done

Max MXJ development on OS X 10.8 Mountain Lion

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)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
	at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
	at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
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 :)

nevver:

The rise and fall of music delivery formats
Homemade 5v power for a doepfer eurorack buss board

Homemade 5v power for a doepfer eurorack buss board

Run a command in the background on Linux/Unix

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

Review of Kanada

Nice review of my track ‘Kanada’ due out on the 28th of August

http://upcoming.beatsmedia.com/withakay-kanada-axon-records/