Replies: 1 comment 3 replies
-
Hi @Miko999
Can you tell us a little more about the task structure? Is one trial a long audio clip with many metronome beats? Does the visual stimulus appear for a short time after each keypress? I think the way to solve your problem will depend on how the trials need to be organized.
The best way to do this will probably depend on how you answer the other questions, but the simplest option is to use the const trial = {
type: jsPsychAudioKeyboardResponse,
stimulus: 'audio.mp3',
prompt: '<p style="font-size: 48px;">+</p>'
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm quite new to javascript and jspsych and am attempting to implement a metronome response task (see: https://doi.org/10.3758/s13414-020-02131-x), mostly using the audio-keyboard-response plugin.
This is a continuous performance task with regularly spaced audio stimuli (i.e., metronome beats), where participants have to tap a key along with the stimuli. The stimuli must be equally spaced to be 'rhythmic' for the purposes of this task.
The original had visual stimuli appear when participants responded, depending on the timing of their response relative to the auditory stimuli. I wanted to do something similar to show that the participants' response has been recorded. I could add this in using "on_finish", but I'm not sure if I can tie it to the response within the same trial. Along with that, I wanted to have a fixation cross on screen at all times (though it could be covered by the visual stimuli from the response).
So basically:
Any advice would be much appreciated!
I have to do this all in Gorilla(.sc), since that's how my supervisor wants us to implement online tasks, and jspsych seems like the best option (the Gorilla 'task creator' GUI has very limited logic/branching options).
Beta Was this translation helpful? Give feedback.
All reactions