Kara-Moon Forum
May 14, 2024, 11:22:12 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: You can go back to the main site here: Kara-Moon site
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: noise canceling?  (Read 8222 times)
Wyatt
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 2073



« on: December 15, 2009, 08:43:37 AM »

I got an idea yesterday, so I decided to look into how noise canceling works.

I have been reading about it, that they use an inverted wave form.

Well, that sounds simple enough, but when I use an inverted wave form..

..it does almost nothing at all.   Tongue  Sad

Can you tell me what am I missing here?


THX

Logged

kara
Kara-Moon, a site built by and for musicians
Global Moderator
Kara-Moon Master
*****
Posts: 4907


Music is my middle name


WWW
« Reply #1 on: December 15, 2009, 09:18:34 AM »

Well, it's strange that it doesn't anything....
It's indeed how noise canceling works, as far as I know....
Taking a sample of the 'pure' noice, a trunc of the track where there is only noise, generating the inverted wave and mixing it in.

I've done the test in audacity...
See pic 1, I've created a sine wave and inverted it in the second track
Then in pict2 i mixed it.
Result : As you can see the result isn't zero, but I get a litle sine at -24 db

So, it should 'something'....


* picture1.jpg (156.19 KB, 1440x900 - viewed 572 times.)

* pic2.jpg (139.66 KB, 1440x900 - viewed 584 times.)
Logged

_____oOo______ http://www.myspace.com/kaazduo

www.kara-moon.com, a site built by and for musicians
Support us at : http://www.mymajorcompany.com/Artistes/kaaz/
Wyatt
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 2073



« Reply #2 on: December 15, 2009, 09:43:48 AM »

Well, it's strange that it doesn't anything....
It's indeed how noise canceling works, as far as I know....
Taking a sample of the 'pure' noice, a trunc of the track where there is only noise, generating the inverted wave and mixing it in.

I've done the test in audacity...
See pic 1, I've created a sine wave and inverted it in the second track
Then in pict2 i mixed it.
Result : As you can see the result isn't zero, but I get a litle sine at -24 db

So, it should 'something'....


OK..I will try mixing it..what I did here was to delete the right track of a stereo file..then copy the left track to the right track..then invert the waveform of the right track.

I could hear a difference, but not really quieter. Just a little distorted.

I will try mixing..

Thanks..I am hoping I can get this to work..
Logged

kara
Kara-Moon, a site built by and for musicians
Global Moderator
Kara-Moon Master
*****
Posts: 4907


Music is my middle name


WWW
« Reply #3 on: December 15, 2009, 09:55:59 AM »

Well if i understand right what you're saying, this wouldn't work because you send the inverted track to another channel. In that case it wouldn't cancel anything.

k
Logged

_____oOo______ http://www.myspace.com/kaazduo

www.kara-moon.com, a site built by and for musicians
Support us at : http://www.mymajorcompany.com/Artistes/kaaz/
Wyatt
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 2073



« Reply #4 on: December 15, 2009, 09:57:34 AM »

Well if i understand right what you're saying, this wouldn't work because you send the inverted track to another channel. In that case it wouldn't cancel anything.

k


That makes sense..I'll keep working on it..thanks!
Logged

Wyatt
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 2073



« Reply #5 on: December 15, 2009, 10:18:34 AM »

Whoaoo!!!  ..does it ever work!!!!

I would like to be able to create a quieter environment in my truck. Imagine popping a CD in the player and having it get quiet all of a sudden.   Cheesy

I am not terribly optimistic that I can succeed entirely, as I am thinking about this, because so many of the sounds fluctuate continuously..

..but I am very curious about it, so it is worth it to me to pursue it.

Thanks for helping me out this morning kara. I appreciate it.

You can see in the picture that the session is playing and the white cursor is on a fairly loud place, and at the very bottom left of the screen the level indicators are totally dead flat zero..not a twitch.



* noise canceled.jpg (623.69 KB, 1338x755 - viewed 576 times.)
« Last Edit: December 15, 2009, 10:59:53 AM by Wyatt » Logged

Wyatt
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 2073



« Reply #6 on: December 15, 2009, 06:47:37 PM »


Not only does it not work in the truck, but it doesn't even work a little bit.

I got a preview of that while still in Audition. When I shifted the invert even the slightest bit, they just added together.  Sad

..also I could not line up a different portion of the timeline successfully either.

This one has to be totally spot on. I see why they use a microprocessor to do it in real time.

I found a schematic for it, but anything the mic picks up would get canceled, including any conversation and also including any music you are listening to..so that's why it's headphones only.

Hmm..a speaker setup would make for a "quiet room", though..interesting. 
Logged

kara
Kara-Moon, a site built by and for musicians
Global Moderator
Kara-Moon Master
*****
Posts: 4907


Music is my middle name


WWW
« Reply #7 on: December 15, 2009, 07:16:40 PM »

When I shifted the invert even the slightest bit, they just added together.  Sad


That sounds logical doesn't it?
Actually there are allways added but 1 an -1 ad up to 0
Imagine the following bitstream

1 0 1 0 1
Now the inverted : 0 1 0 1 0
if you do a logical AND on it it gives
0 0 0 0 0

Now shift it just one bit
you get
1 0 1 0 1
AND
0 0 1 0 1 0
and you get
0 0 1 0 1 0

NO canceling anymore  Wink

k
Logged

_____oOo______ http://www.myspace.com/kaazduo

www.kara-moon.com, a site built by and for musicians
Support us at : http://www.mymajorcompany.com/Artistes/kaaz/
Oren
Moderator
Kara-Moon Master
*****
Posts: 5444


...just looking for clues...


« Reply #8 on: December 15, 2009, 07:20:48 PM »

The noise canceling function in Bose headphones is described as constantly sampling noise in the listening environment, and nearly simultaneously generating a reverse-image in the headphones, along with the music. Exterior environmental noise and interior generated noise cancel each other out, and only the music is audible to the listener.
 The process has to happen in real time, however, in order to be effective. A recording of "typical" in-Wyatt's-truck noise will not match the actual in-the-moment noise signature closely enough to provide noise cancelling.
Logged

folderol
Kara-Moon Master
****
Posts: 5313

Who? Me?


WWW
« Reply #9 on: December 15, 2009, 07:21:02 PM »

Basically, what you are trying is 'whack-a-mole'!

For in-room suppression, except at very low freqencies the 'anti' sound source has to be as close as possible for both phase, and power distribution field reasons. Therefore if you have lots of noise sources you need lots of indipendent suppressors.

A company I used to work for (till they went bust) specialised in video conferencing kit, and they had some very sophisticated self-teaching echo and noise cancelling kit, but this relied on an extensive array of ceiling microphones and only performed the cancelling for the remote receivers (or recording system). Having said that was seriously impressive - so was the price!
Logged

If you have a poem, I have a tune, and we exchange these, we can both have a poem, a tune, and a song.
- Will
Wyatt
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 2073



« Reply #10 on: December 15, 2009, 08:30:25 PM »

When I shifted the invert even the slightest bit, they just added together.  Sad


That sounds logical doesn't it?
Actually there are allways added but 1 an -1 ad up to 0

NO canceling anymore  Wink

k


Yeah..thanks!  ..that makes perfect sense..I learned some stuff this morning and had a good time in the bargain!

The process has to happen in real time, however, in order to be effective. A recording of "typical" in-Wyatt's-truck noise will not match the actual in-the-moment noise signature closely enough to provide noise cancelling.

Yep..the in-truck noise sounds kind of "average". but it's not..it's very specific..when I put the waveforms under the microscope it became clear. Even so, I tried it out in the truck, since Harley wanted to go for a ride anyway.   Tongue

I was going to town the other day, and some high pitched wind sounds did a remarkable job of masking some of the higher freqs of one of my songs that gets gradually higher pitched as it goes along. That's when I started wondering about Canceling..I vaguely remembered hearing about the Bose 'phones, but didn't know what was going on.

That's what got me started reading and playing around with it this morning.

Basically, what you are trying is 'whack-a-mole'!

Bingo!!  ..LOLOLOL..now that really describes it.  Cheesy

Quote
For in-room suppression, except at very low frequencies the 'anti' sound source has to be as close as possible for both phase, and power distribution field reasons. Therefore if you have lots of noise sources you need lots of indipendent suppressors.

A company I used to work for (till they went bust) specialized in video conferencing kit, and they had some very sophisticated self-teaching echo and noise cancelling kit, but this relied on an extensive array of ceiling microphones and only performed the cancelling for the remote receivers (or recording system). Having said that was seriously impressive - so was the price!

Awesome stuff. I felt like I was in a laboratory this morning, and I appreciate everybody's help. This could have been pretty frustrating, especially when my first logical attempt was such a failure.   Tongue Cheesy

Logged

Wyatt
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 2073



« Reply #11 on: December 18, 2009, 11:40:25 AM »

Final note:

One millisecond difference between the two tracks is enough to nullify the canceling effect.

Logged

kara
Kara-Moon, a site built by and for musicians
Global Moderator
Kara-Moon Master
*****
Posts: 4907


Music is my middle name


WWW
« Reply #12 on: December 18, 2009, 11:44:43 AM »

Final note:

One millisecond difference between the two tracks is enough to nullify the canceling effect.



Based on the maths, it should be less then one milisecond... depends on the samplerate of course

k
Logged

_____oOo______ http://www.myspace.com/kaazduo

www.kara-moon.com, a site built by and for musicians
Support us at : http://www.mymajorcompany.com/Artistes/kaaz/
Wyatt
Kara-Moon-Collective
Kara-Moon Master
**
Posts: 2073



« Reply #13 on: December 18, 2009, 11:50:12 AM »

Final note:

One millisecond difference between the two tracks is enough to nullify the canceling effect.



Based on the maths, it should be less then one milisecond... depends on the samplerate of course

k


I'm sure you're right.

I woke up thinking I would try 1 ms..I didn't go any smaller.   Cheesy
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.049 seconds with 21 queries.