Hi Zep! :) I think I found a bug in one of the more esoteric stat calls?
Bug:
According to the manual, stat(56) should return the number of ticks played in the current pattern. Currently (0.2.5e), it seems to poll the leftmost sfx in the pattern for the count. That makes sense bc the overall pattern length is determined by the leftmost sfx which is not a loop, but as the title says, stat(56) will reset back to 0 early if the leftmost sfx is a loop.
Expected behavior:
stat(56) should return the number of pattern ticks played regardless of looped sfx
Thanks for your time! :)
@dw817 Yeah, I’m hoping it’s a bug but also pretty sure it’s a bug. Assuming the intent in the docs is correct, stat(56) doesn’t really serve a lot of utility if there’s a case where it’s not reporting the number of ticks played in the pattern overall. Otherwise, if it worked like I assume it should, one could always obtain the number of ticks played in a specific sfx by combining stat(56) w the speed/loop values of the sfx
[Please log in to post a comment]