URL of experiment: https://run.pavlovia.org/ZelalGul/monk_lion
Description of the problem: I have defined a list of vibrations corresponding to visual stimuli. In the begin experiment tab I used this code to define which list I want to play. But I keep receiving the error message playlist not defined.
//set up a dictionary that has the animal sequences for each animal
//const textSupport = document.querySelector(‘p[data-js=“support”]’);
const playList= {
‘monkey’: [ 166,320,128,257,
103,249,71,145,
138,366,119,273,
120,248,79,121,
71,121,63,113,
63,129,263,665,
103,112,64,113,
63,105,63,129,
119,521,71,129,
63,120,56,149,
107],
‘lion’: [
592,184,632,144,
584,169,534,282,
96,159,95,161,
104,24,88,40,
120,152,
592,184,632,144,
584,169,534,282,
96,159,95,161,
104,24,88,40,
120,152],}
The variables monkey and lion are included in my excel file, contained in my loop saved as animalList. I did not include the vibration parameters in the excel file.
I’d be grateful for any suggestions