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