ANDing / XORing two almost identical tracks
Posted: Sun Dec 28, 2008 8:50 am
I use Audacity (1.3.5, WinXP, SP2) to record various sounds, eg, from YouTube, the TV card, microphone, etc., using "What U Hear". The sources are all mono, but by default I record in stereo, then split and save as a mono mp3.
Here's the problem: past a certain CPU loading on my PC, my soundcard starts sending clicks to the speakers, and Audacity captures them. On average, there's a click every 3 seconds or so, but there can be a burst of a dozen clicks in a couple of seconds. For most recordings, there are too many to consider manual removal. Now, this isn't a show-stopper, because the recordings are for convenience rather than for critical use. Still, I'd rather have the clicks gone, as long as the effort is minor.
A possible way to attack the problem mechanically: examining the waveforms in Audacity, I noticed that the clicks rarely occur in both channels at the same time, and that they occur primarily on the negative (lower) side of the wave in the left channel, and the positive side in the right channel. IOW, the "click" noises are exposed as differences in the two waveforms. I've uploaded a screen cap with differences -- the clicks -- highlighted.
Finally, the question: is there a method or a plug-in which can "AND" the two tracks, yielding an output track which excludes any part of either input track's waveform that is not overlapped by the other input track's waveform? or, vice-versa, which can "XOR" the two tracks, yielding an output track which includes only non-overlapping parts of the waveforms, ie, virtually all of the clicks, which could then be inverted and merged back into a combined mono version of the source tracks?
Or am I dreaming?
Here's the problem: past a certain CPU loading on my PC, my soundcard starts sending clicks to the speakers, and Audacity captures them. On average, there's a click every 3 seconds or so, but there can be a burst of a dozen clicks in a couple of seconds. For most recordings, there are too many to consider manual removal. Now, this isn't a show-stopper, because the recordings are for convenience rather than for critical use. Still, I'd rather have the clicks gone, as long as the effort is minor.
A possible way to attack the problem mechanically: examining the waveforms in Audacity, I noticed that the clicks rarely occur in both channels at the same time, and that they occur primarily on the negative (lower) side of the wave in the left channel, and the positive side in the right channel. IOW, the "click" noises are exposed as differences in the two waveforms. I've uploaded a screen cap with differences -- the clicks -- highlighted.
Finally, the question: is there a method or a plug-in which can "AND" the two tracks, yielding an output track which excludes any part of either input track's waveform that is not overlapped by the other input track's waveform? or, vice-versa, which can "XOR" the two tracks, yielding an output track which includes only non-overlapping parts of the waveforms, ie, virtually all of the clicks, which could then be inverted and merged back into a combined mono version of the source tracks?
Or am I dreaming?