Response time when using sound stimuli
in OpenSesame
Hi.
I am a beginner planning a phonetics experiment using open sesame.
I have a question about measuring reaction time when using sound stimuli.
In my experiment, the stimulus is a sound, and the response is a mouse click.
What I want is the duration from the end of the sound stimulus to the mouse click.
There are many variables related to time in the logger file, but I'm not sure which one will give me the results I want.
In my opinion, the most likely candidates are 'time_Logger' and 'time_PlaySound'.
Can I measure the response time by subtracting 'time_PlaySound' from 'time_Logger'?
Thank you for the answers from open sesame experts.

Comments
Hi @hwon,
I'm not sure I understand your question. If you want to measure a response time for a mouse click after a sound has played, you simply need to set the duration of the sampler to the sound's duration and place the mouse response object just after the sampler. Then you simply use the response_time variable.
I attach a basic example.
Note that if you wanted to measure the RT form the sound's onset (instead of offset), you'd simply have to set the duration of the sampler to 0.
Hope this helps,
Fabrice.
Hi, @Fab ,
Thank you for your kind reply.
I would like to correct something in the previous question that was not specific.
The experiment I'm designing involves listening to a sound stimulus(using a sampler) and pressing a button that corresponds to an answer to a question(using a form base with buttons).
In other words, it seems to be accurate to say that it is a button click(with a mouse), not a mouse click.
In this case, there is no 'response_time_mouse_response' variable in the log file.
There are 'time_Buttons', 'time_Logger', and 'time_PlaySound' in the log file.
'time_Buttons' seems to be the time the button was pressed.
But I'm not sure what 'time_Logger' and 'time_PlaySound' mean.
If you know the answer to this question, please let me know.
Sorry to bother you with additional questions.
Hi @hwon,
Thanks for clarifying your question.
To asnwer you question, the "time_" variables correspond to the time stamp for different objects (see https://osdoc.cogsci.nl/3.3/manual/variables/#experiment-variables). You can think of it as the time on an internal clock (the time it was when such or such object was shown or run). The form_base object does not come with an automatic response_time variable because by definition this type of form allows experimenters to display anything, but you can calculate the response time manually using some code, calculating the time difference between the time stamp of that code (
time_calculate_RT, if we imagine that your inline_python object is called calculate_RT) and the time stamp of the form (time_formA, if we imagine that your form is called formA). Here's a demo playing a sound and then taking a response frmo a form where participant has to click on one of two buttons.Hope this helps,
Fabrice.
Dear @Fab,
I really appreciate your kind and detailed explanation.
Your explanation gave me a good understanding of how time works.
Thank you so much for the demo file too!