# Tried to create a Metronome, audio keeps stopping

**URL:** <https://community.thunkable.com/t/tried-to-create-a-metronome-audio-keeps-stopping/2260388>\
**Category:** Issues / Bugs\
**Created:** [February 5, 2023, 1:11pm UTC](https://community.thunkable.com/t/tried-to-create-a-metronome-audio-keeps-stopping/2260388 "2023-02-05T13:11:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hdawc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/hdawc/32/119068_2.png) [@hdawc](https://community.thunkable.com/u/hdawc)\
**Post date:** [February 5, 2023, 1:11pm UTC](https://community.thunkable.com/t/tried-to-create-a-metronome-audio-keeps-stopping/2260388/1 "2023-02-05T13:11:10Z")

</div>

Hi,

There are a lot of Metronome apps on the Play Store and as I didn’t want to download one that has weird code or permissions (and I have Thunkable) I wanted to create my own.

It’s very simple, there is a button, a slider and a label.

The slider goes from 1-200 and the label shows the number as you change it, that is stored as the variable `tempo`

When the button is clicked it stores a value of true/false for on/ off.

The sound uploaded has been cut to a short length of 0.1 seconds and I have MP3 and OGG uploaded.

The loop plays the sound with an interval of 60 divided by the variable `tempo` per second, to give the BPM.

When the slider is about 100 or higher, the audio seems to stop playing like there are too many audio components being played at once (or something)… I have tried both the MP3 and OGG audio.

How can I fix this? Is it possibly just the ‘live’ app causing issues?

Thank you.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:37pm UTC](https://community.thunkable.com/t/tried-to-create-a-metronome-audio-keeps-stopping/2260388/2 "2024-11-08T13:37:04Z")

</div>


