Noise Cancellation question-creating an inverted sound wave

My neighbor has a HVAC unit that produces a regular low-frequency bumping sound in my bedroom. I would like to try creating the inverse of this sound wave and project it back towards the HVAC unit using outdoor speakers and an mp3 player. I imagine using windows sound recorder (or Audacity I suppose) to record the sound in my bedroom when their HVAC is on, then use use Audacity to invert the sound pattern and record to mp3. But I’ve never used Audacity or any audio editing software before, it’s an entirely new world for me. Can someone please instruct me how to create the inverse sound file? Or does anyone have experience with something like this and can me if I have any flaws in my way of thinking, or something I could do?

If you are trying to cancel out the sound by creating the exact inverse, I think you will need to be able to play it back EXACTLY in time and, I suspect, EXACTLY at the same amplitude, otherwise the two sounds will not be a perfect match for each other and will slowly drift out of synch. Whilst creating the inverse signal is feasible. I think your approach is fundamentally flawed.

It’s a nice concept. If you do manage to get the cancellation to work (see PGA) it’s only going to work in one place in the room – the place where you put the microphone. The room contributes to sound change as you move around, so the cancellation sound is only going to be valid for one location. Anything that changes in the room will change the cancellation characteristic. So don’t roll over, and always read the same size book.

That in addition to the sync drift problems.

There is room for speculation about putting a powerful sound system at the pump – cancel the sound before it leaves the pump area. I can see one practical problem with that. The only way you know what the pump sounds like in real time is to put a microphone there and the only way to cancel the sound is to feed that sound back to the area of the pump. Any system change at all and it will go into feedback…eeeeEEEEEE

Good thought experiment, though.

Sound Cancelling headphones work because they have a captive workspace (your ear) and a microphone not in the workspace.

Koz

your responses bum me out. but makes sense I guess. I wasn’t planning to sample the outside sound and try to quickly send a cancelling wave back to the HVAC unit. I planned to just play in a loop an inverse sound pattern based on a recording taken from inside the house, mp3 player and speakers located outside the house pointed back at the HVAC unit. I wouldn’t mind trying it for the heck of it though. How can I create in Audacity the inverse wave of a recorded sound?

See “Destructive interference” here: http://en.wikipedia.org/wiki/Interference_(wave_propagation)#Mechanism

To cancel out a sound completely you need an identical sound that has a “180 degree phase shift”, or in other words “inverted”.
Audacity can invert a waveform with the “Invert” effect (Effect menu).

The problem that you will have is that (a) the recorded sound will not be identical to the live sound (there will be small but significant differences) and (b) even if you did have an identical copy of the sound you have no way to synchronise the recorded sound with the loud sound so that they are exactly 180 degrees out of phase with each other.

It is 10 years from this post.

Was it possible for you to create the reverse wave?

In my case, there is an external source creating a high pitched sound, it is just like a whistle, and it is very annoying. This is the only sound I would like to remove. The rest do not mind.
The sound is mainly constant.
Any suggestions?

Audacity’s spectral editing tools could be a cure, see …
https://manual.audacityteam.org/man/spectral_selection.html#example

…and probably more effective than Effect > Noise Reduction…

In my case, there is an external source creating a high pitched sound, it is just like a whistle, and it is very annoying.

Is this also “live sound” or are you trying to remove the noise from a recording?

There are a couple things that make it nearly impossible to cancel live sound… You need a microphone to pick-up the live sound so it can be amplified and inverted. That’s easy enough but it won’t work if the mic also picks-up the “re-generated” inverted sound. (With noise-canceling headphones that’s easy because the microphone is outside of the headphone and the inverted sound is inside.)

Higher frequencies are even more difficult because of the short wavelength. A 1kHz tone has a wavelength of about 1 foot. If you have out-of-phase waves from two different sources and you get 6-inches closer or farther than one source, that’s a half-wavelength, the sounds are now in-phase and you are doubling the sound instead of canceling it.



…If you reverse the connections to one stereo speaker the bass (long wavelengths) will cancel quite-nicely. But the other frequencies will add or subtract depending on the distances and how the sounds bounce-around the room and you get a weird “spacey” sound. (Sometimes this is used for
a “stereo widening” effect.

It is a “living sound”, it is a kind of whistle. I think it’s coming from a high-pressure water pipe or something like this. The idea is to create the inverted signal just for this sound (even from a previous recording, because it is very constant) and not deal with the other ambient sounds.

I don’t know if this is possible, because I really don’t know anything about signal processing.

That’s why I asked if @Jayson79 (10 years ago) was able to achieve his goal.

A more useful technique might be to use your live recording to find the source of the noise. You listen to Audacity with good quality headphones and set Edit > Preferences > Recording > Playthrough to ON. Start a recording and listen to the microphone while you move it around.

That’s how I found a music system bass cabinet that didn’t go off when I turned it off and it made a constant, quiet hummy sound that drove me crazy. That’s also how I found the screeching sound that my tablet was making. If you’re on Windows, it may turn out that your computer fans are making noises. Macs tend to be quieter, but they’re not immune, either.

I also found the screen in my iPhone can put noises into a recording if I use it to read a script.


Once you find the source of the noise you can take steps to fix it, such as padding, blankets, or microphone orientation. Most home microphones have a dead spot straight behind and if you aim that toward a noise maker it can help—sometimes a lot. However, if you have an wooden-floor, bare-wall echoey room, that’s only going to be marginally successful.

If you can’t fix it, then take steps to find a different studio or recording space. Trying to live cancel room noises doesn’t work.

If you’re still intent on trying, don’t use MP3 anywhere in the experiment. MP3 gets its small, convenient file sizes by slightly distorting the sound.

Koz