Dynamic Music Transitions in Metasounds?

Hi!

I’m currently trying to figure out how to implement musical transitions within Metasounds. I understand how to create fades and layering, but this specific use case is a little different to that.

I have a piece of music split into 3 sections of 24 bars (A, B, C). When the player starts the level, the A section loops indefinitely. The idea is that once the player crosses a trigger point in the level, the music will play out the rest of the A section up to the end of bar 24, and then once the A section finishes, begin playing the B section rather than looping A again. This will happen again in the same way to get from B to C.

This will never happen in reverse (i.e. the player won’t go from the B section back to the A section), and all of the tracks have reverb tails that shouldn’t be included in the loop. I’ve attached a screenshot of the current music system here to hopefully demonstrate how the system is currently working to loop music.

Would love to hear people’s thoughts and advice on this, as I have no idea where to begin!