Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > FamiTracker Talk > PCM on a pulse channel Owner: za909 New post
Page 1 of 1 Sort:  
PCM on a pulse channel Posted: 2014-05-09 12:39  (Last Edited: 2014-05-09 12:41) Reply | Quote
za909

Avatar

Member for: 3963 days
Location: Hungary
Status: Offline

#57071
So I read a lot about how sample playback works on the master system, and I thought about trying it on the NES. I hope this is possible on real hardware, assuming the code can run 133 times per frame to get a sampling rate of ~8000Hz like this hacked module.

Although the envelope sequence length is quite limiting I made a kick using a pulse channel, setting the period to 8 and using fast volume writes. Also you can apply 2-bit volume control via PWM thanks to the 4 duty settings.
I'm not sure if this high frequency would get filtered on hardware though.

_______________________
Rectangular sh*t ©
Attachments:
pulsepcm.ftm (3 Kb)
Posted: 2014-05-09 17:20 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#57074
You can avoid the PWM slicing if you use a low frequency, reset the phase continually, and use duty 3 (which starts high, unlike the other duty settings). B00daW made a demonstration of this a while back actually, not with Famitracker though.

Posted: 2014-05-11 00:32 Reply | Quote
za909

Avatar

Member for: 3963 days
Location: Hungary
Status: Offline

#57132
Oh so you can get a constant signal going...very sneaky.

_______________________
Rectangular sh*t ©
RE: PCM on a pulse channel Posted: 2014-05-11 00:38 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#57133
This might be of interest to you.

_______________________
Follow me on [url=https://twitter.com/jrlepage2a03]Twitter.
I record (some) NSFs on hardware. Feel free to [url=http://www.famitracker.com/forum/posts.php?id=3633]request a hardware render.
Attachments:
pulsepcm1.nes (256 Kb)
Posted: 2014-05-11 00:49 Reply | Quote
CheeseGuy99

Avatar

Member for: 3752 days
Location: Amarillo, TX
Status: Offline

#57134
Holy CRAP that's epic. It's certainly of interest to me xD

Posted: 2014-05-11 01:53  (Last Edited: 2014-05-11 02:03) Reply | Quote
VinylScratch

Avatar

Member for: 3554 days
Location: Nebraska
Status: Offline

#57136
WOW. That's all done at 60Hz? I am truly interested. If this goes far enough, we will be able to recreate music from the Amiga on the NES. [url=http://www.youtube.com/watch?v=Y6mXLxUZvzg]You already can on the Commodore 64 (With a few minor limitations)

_______________________
[url=https://soundcloud.com/dj-dimeback]Soundcloud | [url=http://www.youtube.com/user/ITGpwnage]Youtube
Posted: 2014-05-11 02:35 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#57137
I don't think any of this works at 60 Hz. :p

_______________________
Follow me on [url=https://twitter.com/jrlepage2a03]Twitter.
I record (some) NSFs on hardware. Feel free to [url=http://www.famitracker.com/forum/posts.php?id=3633]request a hardware render.
Posted: 2014-05-11 10:41 Reply | Quote
za909

Avatar

Member for: 3963 days
Location: Hungary
Status: Offline

#57148
Wow this is great quality for 4-bit sampling. I have to guess that there's a high sampling rate going on here. At least definitely more than just 8kHz.

_______________________
Rectangular sh*t ©
Posted: 2014-05-13 18:43 Reply | Quote
mmkthecoolest

Avatar

Member for: 2974 days
Status: Offline

#57264
I just tried this on NTSC VirtuaNES...doesn't work so well with PAL, though.

_______________________
You shouldn't be here.......
[url=http://www.youtube.com/user/mmkthecoolest/videos]YouTube
[url=https://www.dropbox.com/sh/ilt1awj3tbz153r/AABpFdfVS0uviRdXNikitwpxa]Dropbox
Posted: 2014-05-14 00:19 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#57317
It works just fine on an NTSC NES, that's the most important part I guess.

That reminds me, I haven't tried it on my PAL NES. Maybe I should try that sometime.

_______________________
Follow me on [url=https://twitter.com/jrlepage2a03]Twitter.
I record (some) NSFs on hardware. Feel free to [url=http://www.famitracker.com/forum/posts.php?id=3633]request a hardware render.
Posted: 2014-05-14 04:48 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#57325
It should run on PAL, just slower.

Posted: 2014-05-16 23:24 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#57442
Turns out it would just [url=https://www.youtube.com/watch?feature=player_detailpage&v=Ch_5_x1IUA8#t=88]play at the speed and pitch it was meant to play.

_______________________
Follow me on [url=https://twitter.com/jrlepage2a03]Twitter.
I record (some) NSFs on hardware. Feel free to [url=http://www.famitracker.com/forum/posts.php?id=3633]request a hardware render.
Page 1 of 1 Sort: