Zoë Blade's notebook

Wavesplit

In a sound-first workflow, it's convenient to be able to take a recording of various single hits, and automatically split them up into individual samples, one per hit. You can then concentrate on the less tedious, more human aspect of the process: deciding which samples to keep and which to discard.

Sox is great for this sort of thing. Here's a handy script I wrote to use it to split up one .flac or .wav file into multiple ones, wavesplit.sh:

#!/bin/sh
sox $1 ${1%.*}-.${1##*.} silence 1 0.125 1% 1 0.125 1% : newfile : restart

You copy it to your ~/bin directory, then use it like this:

$ ls
recording.wav
$ wavesplit.sh recording.wav
$ ls
recording.wav
recording-001.wav
recording-002.wav
recording-003.wav

Scripts: Wavesplit