Trouble playing music

I’m making a rhythm game in blocks and I cant figure out how to play the music when you play a song. If I put it before the code that makes the notes appear, The notes will only appear when the music is over. And vice versa. How do I make both happen at the same time? Here is the game: https://makecode.com/_5THVqWYehA5v

I have also made a rhythm game in blocks, and what I did was a “Game update every () seconds block” that when run changes a variable by 1. This variable can act like a timer, and with forever loops you can have the music and the inputs going at the same time. Here is my game if you want to see the code: https://makecode.com/_LCL0ipYbwbvJ