It is currently Tue Dec 12, 2017 8:48 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: NSF files
PostPosted: Wed Aug 19, 2015 1:30 pm 
Offline
User avatar

Joined: Mon Jan 03, 2005 10:36 am
Posts: 2982
Location: Tampere, Finland
zeroone wrote:
lidnariq wrote:
NSF playback rate ≠ Sample rate...


True. But, my emulator is sampling at the CPU frequency. And, the playback rate modifies that frequency. It would have to compensate by decimating or interpolating back to the standard NTSC/PAL frequency before filtering.

I think you're confused about something. The playback rate field in NSF header should not be modifying the CPU frequency. It only affects at what rate (how fast) the PLAY routine in the NSF is called.

_________________
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: kkfos.aspekt.fi


Top
 Profile  
 
 Post subject: Re: NSF files
PostPosted: Wed Aug 19, 2015 2:19 pm 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 750
Location: New York, NY
thefox wrote:
I think you're confused about something. The playback rate field in NSF header should not be modifying the CPU frequency. It only affects at what rate (how fast) the PLAY routine in the NSF is called.


That's an interesting point. I am treating the PLAY routine like NMI, an event that happens once per frame. And, the number of CPU cycles per frame is constant. So, I interpreted this to mean that the CPU frequency had to be adjusted. But, if the CPU is locked at the standard NTSC/PAL frequency then the number of CPU cycles between PLAY routine calls would have to be adjusted. In a sense, the number of cycles in each frame changed instead of CPU speed. I'll give that shot.

Edit: Thanks. That makes a lot more sense.


Top
 Profile  
 
 Post subject: Re: NSF files
PostPosted: Wed Aug 19, 2015 8:14 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5892
Location: Canada
zeroone wrote:
True. But, my emulator is sampling at the CPU frequency. And, the playback rate modifies that frequency.

No, it doesn't. The playback rate merely specifies how long to wait between calls to PLAY. It does not change the CPU frequency.


Top
 Profile  
 
 Post subject: Re: NSF files
PostPosted: Wed Aug 19, 2015 9:05 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3968
Changing the playback rate is like having an interrupt call the sound play routine 75 times per second instead of 60. So it's like changing the cycles per 'frame', but nothing else.

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


Top
 Profile  
 
 Post subject: Re: NSF files
PostPosted: Thu Aug 20, 2015 6:44 am 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 750
Location: New York, NY
Agreed. Thanks for your responses. I was definitely confused about the timing.


Top
 Profile  
 
 Post subject: Re: NSF files
PostPosted: Thu Aug 20, 2015 8:59 am 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 750
Location: New York, NY
Can someone please provide a source of some multi-chip NSF files for testing purposes? It's easy to search for game music rips, but I haven't been able to find multi-chip homebrew NSFs yet.


Top
 Profile  
 
 Post subject: Re: NSF files
PostPosted: Thu Aug 20, 2015 11:58 am 
Offline

Joined: Thu Apr 14, 2011 9:27 pm
Posts: 85
You can try all the Famicompo Mini entries, available at http://midr2.under.jp/ (unzip them all to the same place and sort by largest size and you will find a lot of multi special chip NSFs) but be aware that a lot of those NSFs are not written according to current best practices. You may have to add heuristics for things like the Namco 163 maximum sample length or files larger than 32k that still claim not to use banking.


Top
 Profile  
 
 Post subject: Re: NSF files
PostPosted: Fri Aug 21, 2015 12:40 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5892
Location: Canada
My favourite multichip NSF is Robokabuto's cover of Riselia Castle from Famicompo Mini Vol. 8. Robokabuto has done the most multi-chip work, I think. If you go to the Famicompo entries pages, there's usually icons showing the chips used, which will help find the multichip ones.


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

All times are UTC - 7 hours


Who is online

Users browsing this forum: Gilbert and 4 guests


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