URL of experiment: Sign in · GitLab
Hello, I’ve been working on an experiment for a class in which a sound is played during a word list and when they recall the word list. I am able to get the sound to play continuously in the builder (using custom code, I’ve included it below) but there is no sound online. The program runs online with no error code, but no sound plays. Anyone know how to fix this? Thanks!
I have a custom code component in each loop:
In the being experiment tab:
Python-
background_sound = sound.Sound(2000, secs = 30)
Javascript (all of my javascript is autogenerated)-
background_sound = new sound.Sound(2000, {"secs": 30});
In the begin routine tab:
Python-
if Words_1.thisN >= 0:
background_sound.play()
Javascript-
if ((Words_1.thisN >= 0)) {
background_sound.play();
}
And the end routine tab:
Python-
if Words_1.thisN == 14:
background_sound.stop()
Javascript-
if ((Words_1.thisN === 14)) {
background_sound.stop();
}