Is it possible to stop sound played by sampler at keypress?
in OpenSesame
Hello,
I want to conduct a reaction time experiment where participants have to react to a certain sound. This sound should stop playing after keyboard response. Is that possible???
Please help! Urgent!
Thank you!
Comments
Hi @Iliano ,
Yes, say that your
sampleris called my_sampler, then you can use the following code in a Pythoninline_scriptto stop playback. So in your case, you would add this code after thekeyboard_responsein the run phase of the script.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
THANK YOU!!!!!!!!