CHOPT - a command-line sample chain optimiser!

I’ve been sat on this a while for my own use but I thought I’d try to package it up to share.

CHOPT is a bash script that uses SoX to scan a sample chain file and separate out the transients based on simple ‘silence’ detection. It then rebuilds the chain with all the silence stripped out. There’s also an optional parameter to normalise (to a specified level) each individual sample before the output file is rebuilt.

It’s meant for stripping silence from sample chains that have been organised in an equally spaced method.

I find it invaluable for use the the PT/PT+ as you can make very large savings on the sample size of a chain. Obviously the output file needs to employ the auto-slicing option once loaded into your PT/PT+

The repository and instructions are here:

Included in the repository are a few sample chains as examples. One is unprocessed (equally spaced) while there is one that has been CHOPT and one that is CHOPT and normalised so you can see typical results.

I’m only one man with a MacBook so my testing and usage is confined by that. Give me a shout here if you have any issues or ideas/suggestions. I’m a decent coder but fairly novice bash scripter.

There’s a decent basic guide to SoX (you don’t need to know how to use it) including installation instructions for most platforms:

1 Like