Skip to content

Alternative to trial_ends_after_audio #1158

Answered by kittymimo
kittymimo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Becky,

Thanks for your help. Daiichiro Kuroki, who developed the plugin, is actually helping me figure this out. He changed the plugin as you suggested, but when I use the modified plugin, I get this error: "ReferenceError: Cannot access uninitialized variable". I really don't know what I should try from here, so that's why I asked if there's a way to use the trial_duration parameter but by specifying the duration of the audio stimulus. I thought something like trial_duration: jsPsych.timelineVariable('phrase').duration but it doesn't work.

Here are the parts that were added to the plugin:

          trial_ends_after_audio: {
            type: jsPsych.plugins.parameterType.BOOL,
       …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@becky-gilbert
Comment options

Answer selected by becky-gilbert
Comment options

You must be logged in to vote
0 replies
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