Track Music SpeedUp on Final Lap [Melg, MrBean, CLF78]
#3
(06-08-2022, 07:53 PM)Mr. Archives Wrote: Tested PAL and NTSC-U versions and they work like a charm! An Excellent way to make your distribution more compact should you strive to contain an overflowing amount of tracks.

Just a small question. Would it be possible to alter the code to change the percentage the music would speed up on the final lap? If so, how?

That's possible yeah, change the 3884068D to 3884XXXX, where XXX is ultimately equal to how much the music speeds up each frame. A higher value than 68D will lead to a faster increase, and a lower will do the opposite.

To get more technical, since adding floats constants isn't practical in ASM, I use a small trick to do that more efficiently.
The speedup occurs over 5s, which is 300 frames. 0x68D * 0x12C (300 in hex) is equal to 0x7AD3C. It so happens that 3F87AD3C is 1.06 in float, so the total increase is 6%.
You can use this website https://babbage.cs.qc.cuny.edu/IEEE-754....cimal.html, convert the final increase you want (for example 1.04), remove the 3F8, divide by 0x12C and that'll be your XXXX. 

If you're not familiar with these concepts, just try some values (0x45E will lead to a 4% increase roughly to get an order of magnitude).
Reply


Messages In This Thread
RE: Track Music SpeedUp on Final Lap [Melg, MrBean, CLF78] - by Melg - 06-10-2022, 10:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)