Multiple music loop points

Is there a way to have a song with multiple loops for different points mid battle? i have a fight with 3 different phases and a track that id wish to be able to loop between certain points depending on the phase the player is in.

Something like "Dancing Mad" during the final kefka fight in Final Fantasy 6. For those who dont know, in that game, the song and the fight both has 4 distinct phases. However, each phase of the song loops until the player clears that phase of the fight. Then the next time the song hits the loop point while in the following battle phase, the song transitions to the next part.

Right now, i had just broken it up into 3 parts and had each play at the start of each phase but I dont like how abrupt it is on the phase transitions.

Original thread: https://forums.rpgmakerweb.com/threads/multiple-music-loop-points.157069/