What the NES Would Sound Like if it Were an Atari 2600

Discuss NSF files, FamiTracker, MML tools, or anything else related to NES music.

Moderator: Moderators

User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

What the NES Would Sound Like if it Were an Atari 2600

Post by kevtris »

Well I got bored last night and decided to hook up the TIA audio block to my NES FPGA and play some games and music and record the results. Not much more to say than that. So here it is.

http://blog.kevtris.org/blogfiles/nes2600.mp3

Sounds are from:

1) Super Mario Bros
2) Super Mario Bros 2
3) Megaman 2 (Metalman stage)
4) Neotoxin (track 10h)
5) Super Mario Bros 3
/* this is a comment */
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

The SMB2 underground theme through your emulated 2600 sort of reminds me of how I imagined it might sound on the Game Boy (with abuse of the Game Boy's looped noise pitches, which are very close to C-D-F-G#).

I imagine this isn't without the TIA's limitation on simultaneous channels or period granularity.
User avatar
Bregalad
Posts: 8036
Joined: Fri Nov 12, 2004 2:49 pm
Location: Caen, France

Post by Bregalad »

Well all I can say is thanks god it sounds like the NES !!
Useless, lumbering half-wits don't scare us.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

Good old Bregalad, thinking that everything that isn't 100% to his liking is crap...

I think it sounds pretty good. I didn't understand what exactly happened here though... How did you get NES code to interact with the TIA? Are you performing some sort of on-the-fly conversion of 2A03 registers to TIA registers or are you just making the NES channels as limited as Atari channels?

Anyway, it sounds pretty good for an Atari 2600 (although I guess there are more than 2 channels there), and makes us imagine what could have been done on the 2600 if ROM space wasn't so scarce. I have heard some pretty impressive new compositions for the 2600, and I imagine that the NES tunes could sound very decent if someone adapted them manually while taking the hardware limitations into consideration.
User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

Post by kevtris »

tepples wrote:The SMB2 underground theme through your emulated 2600 sort of reminds me of how I imagined it might sound on the Game Boy (with abuse of the Game Boy's looped noise pitches, which are very close to C-D-F-G#).

I imagine this isn't without the TIA's limitation on simultaneous channels or period granularity.
Correct, what I did was took the NES divider outputs for the squares and triangle, and fed them into the TIA block from the FPGA 2600 I made. The output of the NES' dividers then clocks the TIA block.

It still retains the TIA's 5 bit divider which I used to try and tweak pitches so they were mostly in tune with each other.

Not surprisingly, I mapped the registers at 2600h in the address space, hehe. You can control the "distortion type" and the divider which gives some control of pitch relative to the other channels. It's also possible to swap between the original NES channel and the TIA version.

The two squares just take the output of the divider directly and volume is still controlled by the volume hardware on the NES stuff.

Triangle is a bit different, and there's a fixed volume register you can write to. Otherwise that channel overpowers the other two.

Noise and DPCM are unaffected.

In total then there's three "TIA like" channels.
/* this is a comment */
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

I wonder what kind of decoder it'd take to put the TIA at $4600 as a Famicom expansion sound chip.
User avatar
clueless
Posts: 496
Joined: Sun Sep 07, 2008 7:27 am
Location: Seatlle, WA, USA

Post by clueless »

Last night on IRC I asked about the feasibility of doing something just like that, but at $4100 (I was unaware that $4600 was "special" already) and use a PIC to emulate a TIA, as I imagine that real TIAs are hard to find.
User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

Post by kevtris »

tepples wrote:I wonder what kind of decoder it'd take to put the TIA at $4600 as a Famicom expansion sound chip.
That'd be pretty easy to do. I suspect it'd work if you did it like this:

Connect M2 to the TIA's clock in, then A0-A5 and D0-D7 to the usual places.

you'd also connect M2 to the phi2 input on the TIA.

Then, you get a few chip enables. 1 positive, 3 negative. To put it in at say, 4800 you have to decode A11-A15 in the pattern 11001 (A15 being inverted on the cart port as /CE to the PRG ROM). A 74138 would do. A, B, C inputs would be A13-15 respectively, /E1 would connect to A12, /E2 to ground, and +E3 to A11.

Output 6 would connect to /CE on the TIA with the other 3 TIA chip enables grounded and/or pulled to VCC to enable them permanently.

The only thing I'd be worried about would be the 1.78MHz clock on the inputs vs. the 1.19MHz it's used to, but I highly doubt it'd be a problem since most of the video stuff runs at 3.579MHz anyways.
/* this is a comment */
Hamburgler
Posts: 36
Joined: Wed Jul 04, 2007 8:40 am

Post by Hamburgler »

Wow, these sound great, especially the SMB2 clip.
Drag
Posts: 1350
Joined: Mon Sep 27, 2004 2:57 pm
Contact:

Post by Drag »

Hah, good stuff! :D
User avatar
Jedi QuestMaster
Posts: 603
Joined: Thu Sep 07, 2006 1:08 pm
Location: United States
Contact:

Post by Jedi QuestMaster »

Wow - SMB2 & Metal Man sound great! :o

Okay never mind (still listening to it). :?
User avatar
Hamtaro126
Posts: 786
Joined: Thu Jan 19, 2006 5:08 pm

Re: What the NES Would Sound Like if it Were an Atari 2600

Post by Hamtaro126 »

kevtris wrote:Well I got bored last night and decided to hook up the TIA audio block to my NES FPGA and play some games and music and record the results. Not much more to say than that.
Can there be a way to test it myself, I wanted to do it, But if you had posted what you did in a schematic/pinout format (Nesdev Wiki comes to mind), maybe I can make it myself, I have a regular NES to hack if you care,
AKA SmilyMZX/AtariHacker.
User avatar
Theta_Frost
Posts: 3
Joined: Tue Dec 28, 2010 2:51 pm
Location: Wisconsin

Post by Theta_Frost »

kevtris wrote:
tepples wrote:I wonder what kind of decoder it'd take to put the TIA at $4600 as a Famicom expansion sound chip.
That'd be pretty easy to do. I suspect it'd work if you did it like this:

Connect M2 to the TIA's clock in, then A0-A5 and D0-D7 to the usual places.

you'd also connect M2 to the phi2 input on the TIA.

Then, you get a few chip enables. 1 positive, 3 negative. To put it in at say, 4800 you have to decode A11-A15 in the pattern 11001 (A15 being inverted on the cart port as /CE to the PRG ROM). A 74138 would do. A, B, C inputs would be A13-15 respectively, /E1 would connect to A12, /E2 to ground, and +E3 to A11.

Output 6 would connect to /CE on the TIA with the other 3 TIA chip enables grounded and/or pulled to VCC to enable them permanently.

The only thing I'd be worried about would be the 1.78MHz clock on the inputs vs. the 1.19MHz it's used to, but I highly doubt it'd be a problem since most of the video stuff runs at 3.579MHz anyways.
If someone actually did this that would be awesome. I'd love to build a cartridge with a TIA built in! The sound example is wonderful!
User avatar
Zepper
Formerly Fx3
Posts: 3264
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Post by Zepper »

- Very interesting! Could it be emulated? :) No, I'm not joking.
User avatar
B00daW
Posts: 586
Joined: Thu Jan 03, 2008 1:48 pm

Post by B00daW »

kev:

How many TIAs are used in this, also are you using false pitch dividers?
Post Reply