Replay button sound in OpenSesame form and activation of the form after playing sound
Hi everyone,
I am creating a questionnaire for my PhD study. My questionnaire is simple: the participant play the audio, give a mark to the audio (mark from 1 to 5) and write some comments about the audio. My questionnaire looks like:
but I have some problems:
1/ My audio is playing if you click at image_button in the middle of screen or if you click at Next_button at the bottom of screen. I would like that the audio is played just only if you clicked at image_button.
2/ My audio is played just once but I would like that it can be played every time when the participant click on image_button. I would like that the sound could be played five times at most.
3/ When my audio is playing or have been played, it is impossible to fill in questionnaire. I would like that the participant can fill in questionnaire during the audio is playing or after the audio is played.
How can I do these things?
Thank you a lot!
There is my questionnaire's script
Comments
Hi Libgvi,
That's an interesting scenario. It's actually quite easy to implement everything that you want.
> My audio is playing if you click at image_button in the middle of screen or if you click at Next_button at the bottom of screen. I would like that the audio is played just only if you clicked at image_button.
You can assign a variable to the
image_buttonwith thevarkeyword:And then you can use the following run-if statement for the
samplerto play a sound only if that button was clicked:[play_sound] = yesSee also:
> My audio is played just once but I would like that it can be played every time when the participant click on image_button. I would like that the sound could be played five times at most.
You can set the repeat value of the question_loop to 5, and then break the loop when a sound has not been played with the following break-if statement:
[play_sound] = no> When my audio is playing or have been played, it is impossible to fill in questionnaire. I would like that the participant can fill in questionnaire during the audio is playing or after the audio is played.
Just set the duration of the
samplerto 0!For a simple example, see:
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Great, thank you, Sebastiaan!!