2 x Refresh Speed

Discuss NSF files, FamiTracker, MML tools, or anything else related to NES music.
User avatar
neilbaldwin
Posts: 481
Joined: Tue Apr 28, 2009 4:12 am

2 x Refresh Speed

Post by neilbaldwin »

I really want to change the refresh speed of Nijuu to 120hz. Has anyone done it with their sound engine and what's best practice (i.e. I know calling the refresh routine twice in the NMI is NOT the way to go :) )
User avatar
thefox
Posts: 3134
Joined: Mon Jan 03, 2005 10:36 am
Location: the universe

Post by thefox »

Probably the best way to go would be sprite#0 hit. Can't think of anything else that would work on stock configuration without mapper supporting IRQs.

In NSF files you can simply edit the playback speed in the header.
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
User avatar
Bregalad
Posts: 8181
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Post by Bregalad »

Yeah I've been thinking about it a few times but I cam with no practical solution. NSF's can change refresh speed in the $80 byte header, but I don't know how many NSF players actually takes care of this byte, I suspect that many ignore it and are hardwired to 60Hz.

And without a mapper with IRQs availalbe, only choise left is Frame IRQ (which also happens at 60Hz so it's not of much use) or DMC IRQ, which is without a doubt the best option, if you don't use DMC for music of course.
Useless, lumbering half-wits don't scare us.
User avatar
neilbaldwin
Posts: 481
Joined: Tue Apr 28, 2009 4:12 am

Post by neilbaldwin »

thefox wrote:In NSF files you can simply edit the playback speed in the header.
Bregalad wrote:NSF's can change refresh speed in the $80 byte header,
/facepalm

Of course!
User avatar
B00daW
Posts: 586
Joined: Thu Jan 03, 2008 1:48 pm

Post by B00daW »

Neil,

Only PowerPak NSF player and NSFplug or NSFplay pay attention to refresh rate, as far as I know.

I've created a few 120Hz NSFs and I'm working on one at the moment.

(P.S. -- Otherwise swamped and still looking at Nijuu slowly.)
User avatar
neilbaldwin
Posts: 481
Joined: Tue Apr 28, 2009 4:12 am

Post by neilbaldwin »

B00daW wrote:Neil,

Only PowerPak NSF player and NSFplug or NSFplay pay attention to refresh rate, as far as I know.

I've created a few 120Hz NSFs and I'm working on one at the moment.

(P.S. -- Otherwise swamped and still looking at Nijuu slowly.)
Add "Game Music Box" to that list - it seems to cope with arbitrary refresh rates too.