-
|
Hi, I am running an experiment offline and I am using the psychophysics plugin. I have audio stimuli that are playing fine, but I am unable to use the Do you have any suggestions for making this work (offline)? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi, @kittymimo Thank you very much for using my plugin. I am writing to apologize as I found a bug in the current version. I have attached the latest plugin file to this post—could you please replace your current version with this one? If it works correctly on your end, I will proceed to update my repository (please note that the repository has not been updated yet). I have included a usage example below for your reference. const sounds = [
'./sound/tone100ms.wav',
'./sound/880Hz_100ms.wav'
];
// Preloading files are needed to present the stimuli accurately.
const preload = {
type: jsPsychPreload,
audio: sounds,
}
const sound1 = {
obj_type: 'sound',
file: sounds[0],
trial_ends_after_audio: true
}
const trial = {
type: jsPsychPsychophysics,
stimuli: [sound1],
choices: ['y', 'n'], // The participant can respond to the stimuli using the 'y' or 'n' key.
prompt: 'Press the Y or N key to respond.',
canvas_height: 500
}Best regards, |
Beta Was this translation helpful? Give feedback.
-
|
Hi Daiichiro, Thank you so much for your plugin and for your message. It all works perfectly now! All the best, Catherine |
Beta Was this translation helpful? Give feedback.
Hi, @kittymimo
Thank you very much for using my plugin.
I am writing to apologize as I found a bug in the current version. I have attached the latest plugin file to this post—could you please replace your current version with this one?
jspsych-psychophysics.zip
If it works correctly on your end, I will proceed to update my repository (please note that the repository has not been updated yet).
I have included a usage example below for your reference.