# My app not working as intended when my code is correct

**URL:** <https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513>\
**Category:** Questions about Thunkable X\
**Created:** [May 26, 2020, 2:27pm UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513 "2020-05-26T14:27:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 26, 2020, 2:27pm UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/1 "2020-05-26T14:27:14Z")

</div>

I created a app similar to the other post i created with an sss sound but It stopped working, its not working as intended [https://x.thunkable.com/projects/5ecd1b2324d31e187f68cb4d/137990ed-16f3-4e14-aff8-6acf7e870a97/blocks](https://x.thunkable.com/projects/5ecd1b2324d31e187f68cb4d/137990ed-16f3-4e14-aff8-6acf7e870a97/blocks). You can go there and see the code but i don’t see anything wrong with my code. if you found something wrong with my code please respond to that but i think its a problem with thunkable again

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 26, 2020, 2:43pm UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/2 "2020-05-26T14:43:06Z")

</div>

Hey @zbk0612eip8w I tried that in my browser and clicking on the “moniter” button played the sound for me.

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 26, 2020, 2:44pm UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/3 "2020-05-26T14:44:50Z")

</div>

But it is supposed to play 6 melodies and i am not able to get it to play “unchained melody” and to start over again after playing “phantom of the opera”

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [May 27, 2020, 6:35am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/4 "2020-05-27T06:35:26Z")

</div>

maybe you should change the last block from ‘set app **minute** to 1’ to ‘set app **chime** to 1’

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/caa50f6998d8c97f2848d53e09b48c0ebcf2d9cf.png)

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 27, 2020, 6:51am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/5 "2020-05-27T06:51:43Z")

</div>

@manyone thank you, i fixed it but still not working

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [May 27, 2020, 7:22am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/6 "2020-05-27T07:22:20Z")

</div>

Why do you use 6 audio components if everything can be done with one audio component? This is the main error of the application.

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 27, 2020, 7:45am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/7 "2020-05-27T07:45:46Z")

</div>

@actech you need 6 because you need 6 in this case with 1 audio component you can only play 1 melodies and if you set the source after the chimes yes i tested it it does not work and also please stop using that way because its not very kind to use that type of way

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 27, 2020, 7:49am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/8 "2020-05-27T07:49:46Z")

</div>

also, did you even go into the app you see the reason and i always check the app before i say anything

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [May 27, 2020, 7:53am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/9 "2020-05-27T07:53:19Z")

</div>

Are you saying that if I need to play 100 tunes, then I should use 100 audio components?

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 27, 2020, 7:55am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/10 "2020-05-27T07:55:56Z")

</div>

@actech did you even go into the app? yes but you can change the sound source but it is not working

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [May 27, 2020, 7:56am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/11 "2020-05-27T07:56:58Z")

</div>

After your words, I probably should have stopped all help, but I will still give you a link to an example.

[https://x.thunkable.com/projects/5ece131a77b3c6d8124cef26/project/properties/designer/](https://x.thunkable.com/projects/5ece131a77b3c6d8124cef26/project/properties/designer/)

If my example doesn’t work, then there seems to be a problem with Thunkable X

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 27, 2020, 7:58am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/12 "2020-05-27T07:58:37Z")

</div>

You don’t even need a stop button, have you ever seen that on a wall clock? The clock stop automatically when its finished playing @actech

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 27, 2020, 8:03am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/13 "2020-05-27T08:03:24Z")

</div>

when i hit the moniter button nothing played

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [May 27, 2020, 8:05am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/14 "2020-05-27T08:05:20Z")

</div>

I use the stop button to check the reliability of the sound component

I’ve given you an example that can be modified so that the melodies play without stopping.

On my Android 9 example works.

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 27, 2020, 8:07am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/15 "2020-05-27T08:07:19Z")

</div>

@actech what do you mean and also the example cannot show the time

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [May 27, 2020, 8:12am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/16 "2020-05-27T08:12:18Z")

</div>

I don’t understand your question. In my example, there is no time display function. I can only say that my example doesn’t work in Live on iOS 11.

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 27, 2020, 8:13am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/17 "2020-05-27T08:13:17Z")

</div>

yes it cannot work the example in windows 10 @actech

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [May 27, 2020, 8:19am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/18 "2020-05-27T08:19:21Z")

</div>

I think the Sound component only works with mp3. The fact that this format is played on Android suggests that this is an undocumented feature.

Try replacing all files with mp3

See Docs

[https://docs.thunkable.com/sound](https://docs.thunkable.com/sound) (component accepts .mp3 and .wav files but does not accept .ogg files)

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [May 27, 2020, 8:26am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/19 "2020-05-27T08:26:38Z")

</div>

i followed @actech’s advice and rearranged most of the blocks so only one sound source is used, and i’m using a chime var that continually cycles from 1 to 6 when the chime button is clicked. i did not bother to change the other blocks that display time. for my debugging i added a label2 and button2 to allow me to stop.

[https://x.thunkable.com/copy/d03710f1d23e59844477b9fed0337a0f](https://x.thunkable.com/copy/d03710f1d23e59844477b9fed0337a0f)

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [May 27, 2020, 8:29am UTC](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513/20 "2020-05-27T08:29:34Z")

</div>

btw you don’t need to use a stop button just as mentioned on the previous post

[Next page](https://community.thunkable.com/t/my-app-not-working-as-intended-when-my-code-is-correct/590513.md?page=2)
