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

**URL:** <https://forum.makecode.com/t/how-do-i-play-my-drums-and-music-at-the-same-time/10781>\
**Category:** Help\
**Created:** [November 7, 2021, 4:27pm UTC](https://forum.makecode.com/t/how-do-i-play-my-drums-and-music-at-the-same-time/10781 "2021-11-07T16:27:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoolSwords4](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/coolswords4/32/9222_2.png) [@CoolSwords4](https://forum.makecode.com/u/CoolSwords4)\
**Post date:** [November 7, 2021, 4:27pm UTC](https://forum.makecode.com/t/how-do-i-play-my-drums-and-music-at-the-same-time/10781/1 "2021-11-07T16:27:04Z")

</div>

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!

Game: [https://makecode.com/\_MVfXygajHHYe](https://makecode.com/_MVfXygajHHYe)

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [November 7, 2021, 8:27pm UTC](https://forum.makecode.com/t/how-do-i-play-my-drums-and-music-at-the-same-time/10781/2 "2021-11-07T20:27:57Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![CoolSwords4](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/coolswords4/32/9222_2.png) [@CoolSwords4](https://forum.makecode.com/u/CoolSwords4)\
**Post date:** [November 8, 2021, 3:37pm UTC](https://forum.makecode.com/t/how-do-i-play-my-drums-and-music-at-the-same-time/10781/3 "2021-11-08T15:37:30Z")

</div>

Thanks! It is working now!
