I don't know much about writing a good NES music driver, that's why, for my games, I use FamiTone2 unaltered.
But now there's a feature that I might need that FamiTone doesn't seem to provide:
I want to be able to fade out the music instead of outright stopping it.
So, to see if this is even in the realm of possibilities without much hazzle, I've got some questions:
How complicated would it be to include this feature if the original FamiTone2 code is my current basis?
Would it be possible to write a new function that simply uses the FamiTone variables, but where the "famitone2.s" file is left completely unaltered?
Like this:
Or would this feature require that I alter the "famitone2.s" file itself since existing functions need to be changed as well?
Alternately:
Is there any other way to simulate this feature? Stuff like manually reducing the volume values in the APU (after FamiToneUpdate was written) or something like that? (But this would also silence the sound effects.)
Would reading values back from the APU even be possible? And would this sound alright, if I change existing values after they have already been sent to the APU?
But now there's a feature that I might need that FamiTone doesn't seem to provide:
I want to be able to fade out the music instead of outright stopping it.
So, to see if this is even in the realm of possibilities without much hazzle, I've got some questions:
How complicated would it be to include this feature if the original FamiTone2 code is my current basis?
Would it be possible to write a new function that simply uses the FamiTone variables, but where the "famitone2.s" file is left completely unaltered?
Like this:
Code:
.include "famitone2.s"
MyNewFamiToneFadeoutFunction:
...
RTS
MyNewFamiToneFadeoutFunction:
...
RTS
Or would this feature require that I alter the "famitone2.s" file itself since existing functions need to be changed as well?
Alternately:
Is there any other way to simulate this feature? Stuff like manually reducing the volume values in the APU (after FamiToneUpdate was written) or something like that? (But this would also silence the sound effects.)
Would reading values back from the APU even be possible? And would this sound alright, if I change existing values after they have already been sent to the APU?