working on a demoscene project with the amazing SGDK, I would like to know if there's a way to synchronize my visual events with the music.
I'm currently using the XGM Driver, and I was looking for a function that would either give me the current clock/position of the VGM file being replayed, or even better, a way to access the current instruction executed by the player.
I'm aware that XGM driver is 100% Z80-driven, so it might not be straigtforward to fetch data and have them available in my C code, however I'm all hears if anyone have any idea, suggestion, technique, code snippet or pointers on that topic

I was thinking of a specific FX or Instrument that I could catch or detect but considering the structure of a VGM file, this might not even be possible, right ?
Thanks in advance.