# Trouble playing music

**URL:** <https://forum.makecode.com/t/trouble-playing-music/8694>\
**Category:** Help\
**Created:** [June 11, 2021, 10:55pm UTC](https://forum.makecode.com/t/trouble-playing-music/8694 "2021-06-11T22:55:25Z")\
**Posts on this page:** 2\
**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:** [June 11, 2021, 10:55pm UTC](https://forum.makecode.com/t/trouble-playing-music/8694/1 "2021-06-11T22:55:26Z")

</div>

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](https://makecode.com/_5THVqWYehA5v)

---

<div class="post-metadata">

**Author:** ![biscuit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/biscuit/32/4404_2.png) [@biscuit](https://forum.makecode.com/u/biscuit)\
**Post date:** [June 13, 2021, 5:21am UTC](https://forum.makecode.com/t/trouble-playing-music/8694/2 "2021-06-13T05:21:51Z")

</div>

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](https://www.google.com/url?q=https://makecode.com/_LCL0ipYbwbvJ&sa=D&source=hangouts&ust=1623606702463000&usg=AFQjCNE4KtqshuKA_oX9DZGNJkDxatDG8A)
