psychopy.org | Reference | Downloads | Github

Unspecified JavaScript Error - BART

URL of experiment: https://pavlovia.org/run/cblac002/mscbart/html/

Description of the problem: Using the BART master. I haven’t changed any of the code from the folders I downloaded but when I try to run the experiment on Pavlovia it returns this error. The participant ID page appears and then the error. Would love any help on what is going wrong.

Hey! I’m not sure why, but there seems to be an issue with downloading the sound stimulus (bang.mp3). This might just resolve itself with the upcoming release, so first of a small question: what’s your plan with the BART?

Hi,
I wonder whether if I remove the bang sound from the experiment it would work?
I am hoping to use the BART as part of my MSc research project.

Give it a go I’d say :slight_smile:

Hi @cblac002, thanks for flagging. There seems to be a problem with boilerplate generation here, because the BART demo comes from a previous version of PsychoPy and simply upgrading to version 2021.1.4 as in your project seems to have left certain parts in need of some tweaking.

In particular, the new Sound() constructor call on line 190 needs prefixing with sound to match the PsychoJS import statements at the top of the script. I have created a support fork to demonstrate the fix. Please let me know if you need more help, x

Hi,
thanks for the help!
I am not getting access to anything by clicking on the link to the support fork you created. Maybe I am doing something wrong :S

Sorry, forgot to give you access, is it okay now? https://gitlab.pavlovia.org/support/mscbart

I actually went and had a look at the code and changed the lines you said, and also put the bang sound in .wav format into the folder and now it seems to be running!

Thank you so much for your help!

Ah cool, no worries, thanks for confirming, x