Skip to content
Discussion options

You must be logged in to vote

Hi @OllieSayeed

I think your approach sounds reasonable. You could create a joint array out of the two arrays in order to take advantage of timeline variables. Something like this:

let arr_images = jsPsych.randomization.shuffle([...]);
let arr_audio = jsPsych.randomization.shuffle([...]);

let trials = [];
for(let i = 0; i<arr_images.length; i++){
	trials.push({image: arr_images[i], audio: arr_audio[i]});
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OllieSayeed
Comment options

Answer selected by OllieSayeed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants