is there a way to check for when a song starts playing

when i use the play bgm command, the music loads for a bit before it starts playing
how long this takes varies from time to time
sometimes it takes a second, sometimes it starts immediately and i can't account for both with just wait commands

i want to make an event that is synchronized to the music but if i can't tell when the music starts for real then the whole thing will desync with the music
Making anything based on music in RM is borderline impossible. What you can do is reduce the load times by using a preloader. I'm using Synrec's for my project.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-check-for-when-a-song-starts-playing.155942/