
Hi!
I seem to have stumbled across a slight bug with mixing audio rates on separate channels while working on a game.
Basically, I have channels 2,3 and 4 set at half rate, while channel 1 is at the normal rate, to get a bit higher range for the sfx in game. I have only channel 4 reserved for music by calling music(0,0,0b0001) in _init(), and since that's one of my half rate channels, I'd want stat(24) to accurately provide the pattern its playing currently. However, it seems this only works some of the time, and it can get out of sync pretty easily.
In the cart here, I've separated the music things from my game and made some easier to interpret statistics, but the bug still happens. Here I've made all the music patterns different, every pattern has a different note, and groups of 4 patterns use different instruments, so you can hear where in the sequence the song is. And just to make sure: The audio plays back correctly, the thing that's not working is what stat(24) reports as the current pattern.
