# Music help

**URL:** https://forum.makecode.com/t/music-help/4421
**Category:** Help
**Created:** [November 14, 2020, 1:06am UTC](https://forum.makecode.com/t/music-help/4421 "2020-11-14T01:06:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)
#### Post date: [November 14, 2020, 1:06am UTC](https://forum.makecode.com/t/music-help/4421/1 "2020-11-14T01:06:04Z")

</div>

Does anyone know how I can use other instruments, not just the piano in arcade? Like drums

Help is appreciated.

---

<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 14, 2020, 4:16am UTC](https://forum.makecode.com/t/music-help/4421/2 "2020-11-14T04:16:05Z")

</div>

You are probably stuck with the default sound effects (ex. power up) and the piano unless someone has written an extension to manipulate the sound in such a way to sound like the instruments you want.

Arcade audio works by pulsing the speaker using [PWM](https://en.m.wikipedia.org/wiki/Pulse-width_modulation) (pulse width modulation) on hardware and probably some JavaScript library to play basic frequencies in the browser.

Hardware devices like the PyGamer and PyBadge (that use the ATSAMD51 chip) support CircuitPython, which is maintained by Adafruit Industries. CircuitPython can support playing `.wav` files and there is experimental support for `.mp3` last time I checked. Other devices that use the STM32 microcontroller like the Meowbit can run MicroPython which _should_ be able to play `.wav` files, but since I don’t use MicroPython, I do not know of it’s capabilities. All of the boards support Arduino as far as I know, which has the ability to play `.wav` files too but I can only confirm this for ATSAMD51 chips because I don’t have a Meowbit.

Wow, that was a mouthful.

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [November 14, 2020, 7:14pm UTC](https://forum.makecode.com/t/music-help/4421/3 "2020-11-14T19:14:29Z")

</div>

If you’re comfortable with TypeScript, you can use code written by @kwx for inspiration:

> [@SFX in MakeCode Arcade?](https://forum.makecode.com/t/sfx-in-makecode-arcade/76/16):
>
> FYI, you can do that already, MakeCode has its own [string-based notation](https://arcade.makecode.com/developer/sound#melodies). peli@'s extension converts RTTL format into the MakeCode syntax which makes it possible to use pre-existing melodies in that format, but if you’re making melodies from scratch I think the existing MakeCode format may be a bit more powerful since it’s more closely tied to the way the underlying sound engine works. Here’s an example from a test I was working on. FWIW, it doesn’t currently work great since the different ins…

---

<div class="post-metadata">

### Author: ![kwx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kwx/32/1545_2.png) [@kwx](https://forum.makecode.com/u/kwx)
#### Post date: [November 14, 2020, 8:00pm UTC](https://forum.makecode.com/t/music-help/4421/4 "2020-11-14T20:00:27Z")

</div>

In case it helps, here’s a version with fixed synchronization for the tracks, using a 12-bar blues pattern:

> **[simple loops 3](https://arcade.makecode.com/24040-16499-87113-68061)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

If you’re OK with using the beta editor, that adds a few new waveforms for sounds, for example a tunable noise (waveform 4) which can add a bit of variety for percussion instruments: [https://arcade.makecode.com/beta#pub:\_JL6P9m5fYg9u](https://arcade.makecode.com/beta#pub:_JL6P9m5fYg9u)
