Skip to content

Help with a nested timeline #1911

Answered by becky-gilbert
amunn asked this question in Q&A
Jun 20, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @amunn, first, thanks very much for providing simplified reproducible code - very helpful!! Second, your approach to setting up the nested timeline with variable_distractor_trials seems perfectly sensible to me. I'm guessing the problem is that jsPsych needs the timeline_variables array to be known when the page loads, and perhaps using the jsPsych.timelineVariable function to generate different arrays based on other timeline variables doesn't meet that criteria. So I don't think this is a bug, but rather something that hasn't been implemented. @jodeleeuw can correct me if I'm wrong.

Here's a different method you can try:

  var timeline = [];

  var mystimuli = [
    { exp_item: 'audio…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@amunn
Comment options

@becky-gilbert
Comment options

Answer selected by amunn
Comment options

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

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