Hacker News new | ask | show | jobs
by leetcrew 2254 days ago
> Isn’t ANC effectively twice the sound waves?

ideally no, just the opposite. the idea of ANC is that you detect the frequency and amplitude of incoming waves, then generate a second wave with the same amplitude, but 180 degrees out of phase (so that the trough of the second wave aligns with the peak of the first). a perfect implementation would totally "cancel" the original sound with destructive interference.

I'm not very familiar with consumer ANC headphones (I prefer passive attenuation), but I would expect the cancellation effect does not increase when you turn up the volume, as this would just be perceived as noise if it exceeds the amplitude of the ambient sounds. I guess ANC might encourage people to expose themselves to very loud noises that the device can't compensate for, but that's more user error than an inherent flaw in the technology. people routinely listen to music way too loud in quiet settings anyway.

3 comments

I've played with audio software for a long time and I recently experimented with Active Noise Cancellation. There are a few things to keep in mind:

* A "live" ANC process has no control over the environment from which it receives the audio signals that it acts adversarially against.

* When transmitting audio waves from one medium to another, there will be latency. Perhaps not much, but it will be there.

If you accept these two positions, then consider this:

* What happens when a sound wave that is being combatted (via phase inversion) suddenly stops, or inverts it's own phase? That's right, ANC could potentially double the amplitude of the frequency being combatted.

* I imagine that ANC technology takes advantage of latency to ensure that they don't damage people's hearing, but the nature of ANC requires low latency in general, otherwise you can't be sure that you are combatting the correct frequency (at which point you risk doubling the amplitude due to abrupt changes) - if someone more familiar with the actual algorithms could chime and correct me I will happily stand corrected :)

So first off, doubling the amplitude is a 6dB increase in SPL. So not that bad actually.

Second off, instantaneous sound is only a health issue when it's really loud, like a gunshot (130-140dB SPL) near the point at which the ear drum ruptures. That means that you need to be in an environment where the background noise is dangerously loud to begin with, and because of the way sound is made - this might be unlikely. Which is interesting, because early ANC did have these problems - when it was being used initially for military applications (helicopter/tank pilots iirc).

Lastly the important thing to remember is that ANC is usually part of a dual pronged approach to ear protection. Latency is a problem when you need to cancel high frequencies (where you get past about a quarter wavelength and interference can become constructive), but ANC excels at low frequencies (below about 500-1kHz it can be remarkable even). This is great because passive reduction strategies (sealing off the ear, thick padding, good fit/headband adjustment) are much more effective at high frequencies.

So TL;DR it was a problem, been fixed, and where it might happen is pretty rare for a consumer.

Also noise rarely spontaneously inverts phase at a particular frequency. That'd be weird.

Yeah, you're right about ear damage coinciding with exposure time - short bursts would have to be very loud to cause real damage.

And yes, it would be weird if a frequency range spontaneously inverted - the only scenario I can imagine that happening in is some jerk doing it on purpose.

The reason I became interested in ANC was because every night I would hear a terrible frequency being emitted from the air conditioner units above me (top floor apartment building), and during my experiments I quickly realized how hopeless it would be to effectively combat them due to the varying intensity of the sound throughout my apartment, the dynamic interactions of the sound with itself within my echoey wood floor studio, and my location at any one time. All valid points though, thanks for chiming in. I learned more about ANC :)

Edit: Btw my goal was ANC via speakers, not headphones. Headphones would be much easier since they only have a single, summed audio source.

Then again... won't that summed audio source be at the mercy of my loud speakers?
If you mean by that that it couldn't be louder than what the speaker could produce: No, because you're adding to the original noise entering your ear from the outside.
Will the physical sound waves that I produce with my loud speakers cause Active Noise Control enabled headphones to "engage" with me? Could I adversarially engage with them at that point?
Yes but perfect destructive interference isn’t possible unless everything remains fixed in place which is difficult on a living human head. Its quite possible to get temporary constructive interference for short periods, and also plausible the brain would filter the spurious noise out.
Not quite following this argument. The distance between the microphone and speaker is fixed (and small compared to the wavelengths of interest) because they are part of the AirPod.
The distance between the speaker and ear drum.
Assuming the the canceling wave is timed to cancel at the speaker this should not matter as the external wave and the canceling wave would have the same distance to the ear drum.
That sounds like twice the sound to me due to the additional canceling wave. I don’t trust it to not damage the little delicate bits in my ear just because my brain is able to sum the two waves and perceive silence.
ANC works on the level of physics, not just perception -- it attenuates the actual sound waves.
Where does that energy go although? The waves go to 0-ish, but that air pressure / energy has to go somewhere correct?
The energy goes into constructive interference in other parts of the wave (hopefully not traveling into your ear). Avery's beamlab[1] provides a nice playground with visual representation (use the anti-optimize mode). It's built around radio signals but the concept is very much the same.

[1] https://apenwarr.ca/beamlab/