# Play melody on a passive buzzer

**URL:** https://forum.xod.io/t/play-melody-on-a-passive-buzzer/1498
**Category:** Uncategorized
**Created:** [December 7, 2018, 3:56am UTC](https://forum.xod.io/t/play-melody-on-a-passive-buzzer/1498 "2018-12-07T03:56:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cmskipsey](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@cmskipsey](https://forum.xod.io/u/cmskipsey)
#### Post date: [December 7, 2018, 3:56am UTC](https://forum.xod.io/t/play-melody-on-a-passive-buzzer/1498/1 "2018-12-07T03:56:11Z")

</div>

Hey folks, really enjoying teaching my 10yo arduino using xod (coding was a little complex for him at this stage)

I’m trying to work out how to play a melody on a passive buzzer. I can use [https://xod.io/libs/marcoaita/malibrary/buzzer-timed/](https://xod.io/libs/marcoaita/malibrary/buzzer-timed/) to play a frequency for a time period. But I’m stuck on how to play a series of notes… In arduino I would just setup an array and step through the array with a for loop.

How would I attack this in xod?

---

<div class="post-metadata">

### Author: ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)
#### Post date: [December 7, 2018, 4:24am UTC](https://forum.xod.io/t/play-melody-on-a-passive-buzzer/1498/2 "2018-12-07T04:24:38Z")

</div>

An idea …🙂

 ![buzzer](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/60bd3180fd6c75ecb3607c034de682873345f53d.png)

---

<div class="post-metadata">

### Author: ![cmskipsey](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@cmskipsey](https://forum.xod.io/u/cmskipsey)
#### Post date: [December 7, 2018, 5:15am UTC](https://forum.xod.io/t/play-melody-on-a-passive-buzzer/1498/3 "2018-12-07T05:15:31Z")

</div>

excellent suggestion mate, I got it working, just gotta fiddle around with the logic

thanks heaps!!

---

<div class="post-metadata">

### Author: ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)
#### Post date: [December 10, 2018, 4:01pm UTC](https://forum.xod.io/t/play-melody-on-a-passive-buzzer/1498/4 "2018-12-10T16:01:31Z")

</div>

I would reply it’s not yet possible in XOD… but wow… I’ll print your patch and put it on the wall 😊
