Macro for changing current song speed

jorotroid

Member
This is pretty straight forward. Whatever value you use for the argument is the equivalent of the speed setting in Famitracker. If anyone else is secretly messing with the DPCM channel, you need to add one more line. Also you may notice that this implies that you could set the speed of each channel to a different value if you thought that could lead to an interesting effect.

Code:
MACRO SetSongSpeed arg0
	
	LDA arg0
	STA stream_tempo_hi
	STA stream_tempo_hi+1
	STA stream_tempo_hi+2
	STA stream_tempo_hi+3
	
ENDM
 

CutterCross

Active member
jorotroid said:
If anyone else is secretly messing with the DPCM channel, you need to add one more line.

I wonder who you could possibly be talking about there...

Thanks for sharing this btw! That's sure to be useful for some interesting music effects.
 
Top Bottom