How do I play my drums and music at the same time?

I am making a game, and I am putting music into it. I have 2 functions for the music. One for the drums, and one for the notes. But the problem is I think that Makecode is waiting for the drums to finish before it plays the notes. How do I get these to both play at the same time? Please help!


There is an extension called timers (built-in) that has a separately do block that will run code in a different “thread.” Note that you may need to call pause if it doesn’t run (cause of how Arcade scheduling works)


Thanks! It is working now!