Ah, been smoking enough crack and marijuana that you still think it's the
20th century? Well, explains itself well enough. (c; (c;Ya, works great (I haven't tried it personally).
Well, I suppose an FFT, phase shift and composition back to time domain could work, but the usual way is to INVERT the signal with a single transistor. ;-O!
Well, okay...20 transistors...(inverting op-amp, mic gain, output, double for stereo.)
Note that, noise cancellation works great for localized noise, but anything slightly too close or too far from the cancelling source isn't going to have a perfect null. If you set up a noise cancelling device in a room (as if), the chances are it'll actually double (or more?) the noise in other areas!
In a room, you also have acoustics against you, since the cancelling amplifier has to detect the noise in the first place, requiring a microphone. It takes a certain time for the sound to pass through the air, to the mic, to the amplifier and back to the speaker, and the chances are, some frequency is going to be amplified repeatedly until some element (mic or amplifier) is at its maximum signal level. This is otherwise known as FEEDBACK...
As a result, noise cancellation is most effective for very local cancellation, like headphones. Tack mics on the outside of a pair of 'phones, add an inverting amplifier, adjust gain and you can have reasonable cancellation inside your ears.
Tim
-- Deep Fryer: a very philosophical monk. Website: