It is currently Wed Nov 22, 2017 4:23 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: Fri Apr 03, 2009 11:43 pm 
Offline
User avatar

Joined: Thu Mar 24, 2005 3:17 pm
Posts: 355
How about an audio recording of nesdev_anthem.zip B00daW? :)

yay, the same concept on TMS9918 family graphics chip, as you can see, amplitude can be changed by changing brightness.
http://www.youtube.com/watch?v=rGA_fVegAb4
I spent most of the time creating note- and lengthtables. :(

sourcecode here if anyone's interested: http://samor.nl/hap/crap/vdpmusic.zip (the .com is not for PC)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 04, 2009 6:47 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10117
Location: Rio de Janeiro - Brazil
This is all very nice, but is it also possible to make some video out of audio signals?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 04, 2009 7:28 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3950
Probably not, seeing as you'd need HBLANK and VBLANK in order to have video frames.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 05, 2009 4:46 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10117
Location: Rio de Janeiro - Brazil
Dwedit wrote:
Probably not, seeing as you'd need HBLANK and VBLANK in order to have video frames.

And there's no way to simulate those with audio? I'm just curious, I know nothing about audio and video signals.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 05, 2009 8:22 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6447
Location: UK (temporarily)
tokumaru wrote:
And there's no way to simulate those with audio? I'm just curious, I know nothing about audio and video signals.


Sure you could. You just need a ~60/50Hz pulse wave and a ~15723/15625Hz pulse wave. Only problem is that the NES has a maximum pulse wave frequency of 14kHz, which most TVs won't sync to. Depending on the television, you might be able to drive at the first undertone (~8kHz) and have it sync.

Drawing things in addition to generating sync will be nontrivial, however.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 05, 2009 8:58 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10117
Location: Rio de Janeiro - Brazil
lidnariq wrote:
Drawing things in addition to generating sync will be nontrivial, however.

I was just curious as to what kind of things would be possible. The resolution of whatever was generated would probably be laughable.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 05, 2009 11:46 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3950
You might be able to generate something like a TI83+ can if you're lucky, but a TI83+ has a 6MHz Z80. Is the NES fast enough for generating anything visible through PCM output?

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 06, 2009 1:28 am 
Offline
User avatar

Joined: Mon Sep 27, 2004 8:33 am
Posts: 3715
Location: Central Texas, USA
lidnariq wrote:
tokumaru wrote:
And there's no way to simulate those with audio? I'm just curious, I know nothing about audio and video signals.

Sure you could. You just need a ~60/50Hz pulse wave and a ~15723/15625Hz pulse wave. Only problem is that the NES has a maximum pulse wave frequency of 14kHz, which most TVs won't sync to. Depending on the television, you might be able to drive at the first undertone (~8kHz) and have it sync.

$4011 can be used to generate frequencies of up to ~447 kHz.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 06, 2009 8:25 am 
Offline
User avatar

Joined: Thu Jan 03, 2008 1:48 pm
Posts: 543
nesdev anthem is a cover of that really annoying mouser.nes song. ;P


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 06, 2009 11:41 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19239
Location: NE Indiana, USA (NTSC)
B00daW wrote:
nesdev anthem is a cover of that really annoying mouser.nes song. ;P

Which in turn is a cover of E2M3.


Top
 Profile  
 
PostPosted: Sun May 12, 2013 12:09 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5825
Location: Canada
Since emulators aren't very good at showing this off, I made a video of nesdev_anthem.nes:

Image
http://www.youtube.com/watch?v=xjrFJbN5iCc


Top
 Profile  
 
PostPosted: Sun May 12, 2013 12:59 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19239
Location: NE Indiana, USA (NTSC)
I think I know how to get more bit depth. Vertical mirroring, black nametable 0, white nametable 1, use $2005 as if it were $4011. What this ends up doing is using the scroll to create pulse width modulation.


Top
 Profile  
 
PostPosted: Sun May 12, 2013 4:42 pm 
Offline
User avatar

Joined: Mon Sep 27, 2004 8:33 am
Posts: 3715
Location: Central Texas, USA
I thought you just outputted the 1-bit waveform to $2007. I take it this approach is to have the PPU hardware output a continuous tone without CPU assistance.


Top
 Profile  
 
 Post subject: Re:
PostPosted: Sun May 12, 2013 7:54 pm 
Offline
User avatar

Joined: Mon Feb 07, 2011 12:46 pm
Posts: 932
hap wrote:
On another note, it shouldn't be too hard to add this PPU noise as simulation to emulators...
Yes, if it actually makes the NTSC signals (rather than RGB mode), it will work.

Can you make music through the tape output? Can you make a music combining the video out, 2A03 audio out, mapper audio, and tape?

_________________
.


Top
 Profile  
 
PostPosted: Tue May 14, 2013 8:05 am 
Offline
User avatar

Joined: Thu Jan 03, 2008 1:48 pm
Posts: 543
When I was experimenting with it, I noticed using other color and brightness values it made louder or softer waveforms. If someone were to experiment, they could create a look-up table of the loudest to softest or softest to loudest to create PCM waveforms.

...It would also be prettier.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group