URL of experiment: Ellen Murphy / where what when ONLINE TASK · GitLab
Hi,
I’m quite new to psychoPy and I was wondering if anyone could offer some help.
I’m working on an experiment where I want participant-specific music to play while particiapants complete a task. Participants would have to enter their unique code at the beginning of the experiment (expInfo), which would then lead to music that is specific to that code playing during a specific section of the experiment.
As startup code for the experiment I used the following:
if (expInfo == RYA2409){
my_songs = [];
my_songs.push(“sound/test-file.wav”);
my_songs.push(“sound/131-looped.wav”);
shuffle(my_songs);
my_song = my_songs[0];
}
However I got the following error when trying to run online:
Please excuse my lack of knowledge, but would be very grateful if anyone has any tips on how to do this.