Cleaning up NES audio output

Discuss hardware-related topics, such as development cartridges, CopyNES, PowerPak, EPROMs, or whatever.

Moderator: Moderators

m00dawg
Posts: 22
Joined: Wed Jan 12, 2011 8:53 pm

Cleaning up NES audio output

Post by m00dawg »

The audio output of my NES is super buzzy taking it from the standard audio out. It's fine for listening but very poor for recording. I am playing custom made NSFs (using FamiTracker) via my PowerPak and the problem is that the buzzing is at a pitch, producing some discords.

Add to that the fact that I may need to record specific channels (meaning I have to record off it multiple times for the same song) and you have a compounding of the problem.

Shiru on #nesdev suggested using a battery instead of the wallwart. This seems to have helped marginally but I think most of the noise is coming from the cartridge and somewhere within the NES audio path.

Since I am using the NES for recording, it seems like I could improve this anyway. I noticed that tapping directly off the CPU audio pins is MUCH better (pin 2 has a faint buzz but it is not near as bad). I found the NES audio path (on the main nesdev site) and noticed it has some funkyness to it. I suspect part of the problem is old / bad components there or some sort of grounding problem.

Long story short, does anyone have any suggestions for making my own audio path? I also have a MidiBox SID and notice that the audio path there is similar. I have also seen designs online that just make use of some resistors off the chip.

The goal is not to fry my precious 2A03 first, and to have better audio as an important second. A third bonus is, if I use multiple outs (one for each pin + cart out for 3 total), I can spend less time recording stuff off the NES since I could do up to 3 channels at a time.

Thoughts?
User avatar
cartlemmy
Posts: 193
Joined: Fri Sep 24, 2010 4:41 pm
Location: California, USA
Contact:

Post by cartlemmy »

Move the NES away from other EMF sources? The TV, fluorescent lights, etc... Though I've never had an issue with any buzz in the audio out on my NES, perhaps your ground wire to the board is loose?
m00dawg
Posts: 22
Joined: Wed Jan 12, 2011 8:53 pm

Post by m00dawg »

I tried moving it all over the place. It's true I don't have the shielding on but I tried laying it on top, moving it around, etc. and noticed no difference.

I think it's my RF section because the TV picture is also a bit snowy (though that comes and goes) and I have yet to get into the section itself and replace any of the caps.

I certainly won't rule out interference for sure but I tried turning off most everything in my room and still had a noticeable buzz. Note that you might not hear if unless you're looking for it. It's "soft" by listening standards if you are playing games or jamming to tunes. It's just not suitable for recording since I'm mixing other sources in with it, among other things.
tepples
Posts: 22708
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

Some of the 60 Hz buzz may be due to crosstalk with the PPU. See my last post about this. To minimize the buzz, set the background color to $0D and turn off rendering while recording.
m00dawg
Posts: 22
Joined: Wed Jan 12, 2011 8:53 pm

Post by m00dawg »

Aha! That's definitely worth trying! I assume doing that requires either making a custom NSF player or having FamiTracker output an NES binary and then modifying that?

I haven't had to use any dev tools to this point for any of that stuff. Any recommendations on where I might go for more information on that?
User avatar
thefox
Posts: 3134
Joined: Mon Jan 03, 2005 10:36 am
Location: 🇫🇮
Contact:

Post by thefox »

Loopy has released the source for PowerPak NSF player so you could modify it: http://home.comcast.net/~olimar/NES/
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
m00dawg
Posts: 22
Joined: Wed Jan 12, 2011 8:53 pm

Post by m00dawg »

Sweet! Well that gets me closer for sure! Thanks guys! It will surely take me a while to figure out how to build stuff and read up on the palette stuff but this marks progress! Appreciate the help!
User avatar
NESHomebrew
Formerly WhatULive4
Posts: 418
Joined: Fri Oct 30, 2009 4:43 am
Contact:

Post by NESHomebrew »

Would something like this interest you? Seems a bit steep, but if you are into recording it might be worth it for you.
m00dawg
Posts: 22
Joined: Wed Jan 12, 2011 8:53 pm

Post by m00dawg »

Oooh maybe! Wish I knew how it sounded though - cleaning up the sound is the biggest issue for me over just amplifying it. I don't think I really need to have one pre-made - I can build and solder things, though it is in a nice and tidy package.

The only problem is that it does not include external cartridge audio. I'll need that too, although I haven't had as many problems with noise off the cartridge pin directly, although I would like to have it be at relatively the same levels. It is sort of optional though - the PowerPak is pretty much just emulating the audio chips much like FamiTracker and I'm not sure which one is better. I sort of like the noise of the cart more but that could all just be in my head.

I tried to see what was going on with the board but couldn't quite make everything out given the pictures :)

Definitely something to consider! I may try my hand at setting the background color tepples suggested. I would imagine it's easy to do but I haven't really dug into what is required. Since that is a cheap(er) fix might as well try it first. Of course, if it eliminates sound, I would imagine continuing with modding my NES would still produce better sound!

Haha something to ponder about...
tepples
Posts: 22708
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

One thing you can do after you've tried the $0D trick is is record a couple seconds of silence before the actual recording to establish a noise profile, and then use Audacity's noise reduction filter to subtract this noise out of the power spectrum of your recording.
m00dawg
Posts: 22
Joined: Wed Jan 12, 2011 8:53 pm

Post by m00dawg »

That thought crossed my mind though I'm hoping to use that as a last ditch effort. Using a noise profile could change the sound more than I would prefer, though I have that in my back pocket is all else fails.
User avatar
Jeroen
Posts: 1048
Joined: Tue Jul 03, 2007 1:49 pm

Post by Jeroen »

From my experience though (not much) it works rather well.

edit: another thing you can do is lift up the video pin and put a switch on it since its the main source of noise.
m00dawg
Posts: 22
Joined: Wed Jan 12, 2011 8:53 pm

Post by m00dawg »

Jeroen wrote:edit: another thing you can do is lift up the video pin and put a switch on it since its the main source of noise.
Ah that's not a bad idea. I might try that on the other NES if I can fix it (I think it might be fully dead though - it just emits a loud BUZZ as soon as power is applied :/).

Bypassing the normal audio out totally though would do the same thing, though, would it not? The video out you're talking about, I assume is off the PPU?
User avatar
Jeroen
Posts: 1048
Joined: Tue Jul 03, 2007 1:49 pm

Post by Jeroen »

that mod linked seems to get the audio from the rf modulator...which will have interference. I would not recommend "rebuilding" the audio path either since it might not sound exactly the same :P (altough yes you could move it out of the way of the ppu)
frantik
Posts: 377
Joined: Tue Mar 03, 2009 3:56 pm

Post by frantik »

if you can, isolate everything from a/c power sources, or get power conditioners

try recording without it plugged into the tv and if you can battery powered laptop and battery powered nes
Post Reply