| Pieter's software | Cropaiff |
CROPAIFF version 0.00, an AIFF file silence cropping utility in C by Pieter Suurmond. Latest version is freely available from http://kmt.hku.nl/~pieter/SOFT/cropaiff/.
Utility to 'silence-crop' audio files: cuts away leading and trailing
silence in (multichannel) AIFF files. Only absolute zero's (simultaneous
in all channels) are cut, DC-shifts are not accounted for!
Can only process interger aiff-files, up to 32 bit,
no floating point files, no sd2-files and no compressed aifc files.
On the commandline, one may specify one or more input files:
./cropaiff file1 file2 file3 ...
On systems where startup arguments cannot easily be given (like Mac OS 7-9),
or, when one starts up cropaiff without any arguments, the program lets you
enter one single input filename. Here is an example command:
./cropaiff stereo.aiff
It should output:
Reading file 'stereo.aiff'...
Cut away 350 frames (0.016 s) from the beginning,
Cut away 27 frames (0.001 s) from the end.
Writing file 'stereo-crop.aiff'...
Ok, done.
stereo.aiff Example/test file (containing 2 interleaved tracks).
cropaiff.c Main source.
rdaiff.h API for reading RDAIFF objects.
rdaiff.c Library-implementation.
wraiff.h API for writing WRAIFF objects.
wraiff.c Library-implementation.
Makefile UNIX users may use this to compile (and test-run).
Users with IDE-compilers can simply put the 3 .c
files in a standard ISO/ANSI C-project. It should
compile and run without errors or warnings on all
computers.
The software requires no configuration before compilation (UNIX users
may simply type make). Being completely unaware of the platform it is
running on (or being compiled on), it always does it right.
For easier download, take ../cropaiff-0.00.tar.gz, it contains all the
abovementioned files (including this page itself).