This tool will ingest Octatrack slices from .ot files and generate
sox command line arguments that
chop the original sample accordingly.
The .ot file loading code is based on OctaChainer.
To compile, any C++ 11 compliant compiler should work.
mkdir build
cd build
cmake ..
makeTest this by running
./octasox path/to/otfile.otThe tool will print lines that look like this:
AmnKC.wav AmnKC00.wav trim 126s =8872sPassing this as arguments to sox will load the
sample AmnKC.wav, discard everything outside the range 126...8872
(measured in samples, not seconds), and store the result in AmnKC00.wav.
Similarly for the other lines.
To go ahead with chopping the samples, you can use xarg to build
command lines:
./octasox path/to/otfile.ot | xargs -n5 soxThis will pipe all of the output into xargs, which takes chunks
of five elements and passes them to the sox command.