CLICK DETECT version 0.16, september 28, 2010, Pieter Suurmond.
Latest version available at: http://kmt.hku.nl/~pieter/EDU/c/cd_click_detect/
A small (bash) shell script plus a small C program to find ticks and glitches
in a large collection of WAV- or AIFF-files (that were ripped from audio-CD).
In case of WAV files, you need the SOX program to be installed.
For example, the following may happen when you extract from audio-CD
(but unfortunately none of the CD-ripping softwares complains about it!):
First compile the C-program with for example:
gcc -O3 -Wall click_detect.c rdaiff.c -o click_detect
Shell script 'click_detect_wav' doesn't need to be compiled. It expects WAV
files and calls sox to convert them to (temporary) AIFF files, which are then
checked for ticks and glitches. To inspect a directory, type something like:
./click_detect_wav /media/TERABYTE_2/wavs
When ticks or clicks are suspected, the program reports them like this:
CONSTANT DC (-257 for 1559 samples) in channel 0 at frame 417097 (9.493 s).
CONSTANT DC (47 for 1703 samples) in channel 1 at frame 416953 (9.493 s).
**** _tmp_09-Riding_The_Storm.aiff
1: (file 3) CLICK in Laurie_Spiegel_1945/Unseen_Worlds-C0109/09-Riding_The_Storm.wav!
CONSTANT DC (-48 for 2937 samples) in channel 1 at frame 7130035 (161.745 s).
CONSTANT DC (-3877 for 2937 samples) in channel 0 at frame 7130179 (161.749 s).
CONSTANT DC (6937 for 3447 samples) in channel 1 at frame 10782325 (244.575 s).
CONSTANT DC (-6177 for 3304 samples) in channel 0 at frame 10782469 (244.575 s).
************** _tmp_08-Sound_Zones.aiff
2: (file 7) CLICK in Laurie_Spiegel_1945/Unseen_Worlds-C0109/08-Sound_Zones.wav!
CONSTANT DC (-11 for 3873 samples) in channel 1 at frame 9461059 (214.624 s).
**** _tmp_07-Two_Archetypes_II.aiff
3: (file 8) CLICK in Laurie_Spiegel_1945/Unseen_Worlds-C0109/07-Two_Archetypes_II.wav!