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.zeroone wrote: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.lidnariq wrote:NSF playback rate ≠ Sample rate...
NSF files
Moderator: Moderators
Re: NSF files
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
Re: NSF files
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.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.
Edit: Thanks. That makes a lot more sense.
- rainwarrior
- Posts: 8062
- Joined: Sun Jan 22, 2012 12:03 pm
- Location: Canada
- Contact:
Re: NSF files
No, it doesn't. The playback rate merely specifies how long to wait between calls to PLAY. It does not change the CPU frequency.zeroone wrote:True. But, my emulator is sampling at the CPU frequency. And, the playback rate modifies that frequency.
Re: NSF files
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!
Re: NSF files
Agreed. Thanks for your responses. I was definitely confused about the timing.
Re: NSF files
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.
Re: NSF files
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.
- rainwarrior
- Posts: 8062
- Joined: Sun Jan 22, 2012 12:03 pm
- Location: Canada
- Contact:
Re: NSF files
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.