# Playing sounds in Loop on pavlovia.org

**URL:** <https://discourse.psychopy.org/t/playing-sounds-in-loop-on-pavlovia-org/7088>\
**Category:** Online experiments\
**Tags:** sound\
**Created:** [March 19, 2019, 4:11pm UTC](https://discourse.psychopy.org/t/playing-sounds-in-loop-on-pavlovia-org/7088 "2019-03-19T16:11:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmcooper](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@cmcooper](https://discourse.psychopy.org/u/cmcooper)\
**Post date:** [March 19, 2019, 4:11pm UTC](https://discourse.psychopy.org/t/playing-sounds-in-loop-on-pavlovia-org/7088/1 "2019-03-19T16:11:45Z")

</div>

URL of experiment: [https://pavlovia.org/run/cmcooper/sound/html/](https://pavlovia.org/run/cmcooper/sound/html/)

Description of the problem:  
My first time using PsychoPy and create a demo sound project.  
Works fine in 3.0.6 desktop, Win 32

## Online, A hard coded sound works fine but in a Loop with $ its does not, I get an: Error

Unfortunately we encountered an error:

- when finding a player for the sound
- **could not find an appropriate player.**

## Try to run the experiment again. If the error persists, contact the experimenter.

I have tried putting all the sound files in the root but still no joy.

Am I doing some thing wrong?

Thanks

Mark Cooper

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [March 20, 2019, 8:02pm UTC](https://discourse.psychopy.org/t/playing-sounds-in-loop-on-pavlovia-org/7088/2 "2019-03-20T20:02:03Z")

</div>

> [@cmcooper](#):
>
> [https://pavlovia.org/run/cmcooper/sound/html/](https://pavlovia.org/run/cmcooper/sound/html/)

Hi @cmcooper, would you mind sharing your repo so I can see your experiment?

---

<div class="post-metadata">

**Author:** ![cmcooper](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@cmcooper](https://discourse.psychopy.org/u/cmcooper)\
**Post date:** [March 22, 2019, 9:54am UTC](https://discourse.psychopy.org/t/playing-sounds-in-loop-on-pavlovia-org/7088/3 "2019-03-22T09:54:20Z")

</div>

Morning,

I think I have done this in gitlab add member.

Thanks

Mark

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [March 22, 2019, 10:54am UTC](https://discourse.psychopy.org/t/playing-sounds-in-loop-on-pavlovia-org/7088/4 "2019-03-22T10:54:58Z")

</div>

Morning @cmcooper, thanks for adding me the to project, really helped with the debugging. There may have been some issue with one of the filenames, or perhaps the cache has not been updated with your changes. I made a couple of changes, renamed column in your excel file because the name “Sound” may clash with other important variables. Try clearing your cache before trying this, and let me know. I have it working on my Browser.

Oh BTW, just for info. All the files you need will be automatically added to the resources folder if found in your conditions file, so no need to add subfolders. Have a look at the current directory structure, to get an idea.

---

<div class="post-metadata">

**Author:** ![cmcooper](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@cmcooper](https://discourse.psychopy.org/u/cmcooper)\
**Post date:** [March 22, 2019, 12:01pm UTC](https://discourse.psychopy.org/t/playing-sounds-in-loop-on-pavlovia-org/7088/5 "2019-03-22T12:01:43Z")

</div>

YES!.. Works fine now… As I’m new to this… did not know about important var names…I should have known better about that.

Thanks for you help…
