[solved]Set duration for audio and present picture pairs in order
Hello everyone!
First of all, thanks for offering a platform for discussions and help on here.
I'm fairly new to OpenSesame (went through all the Tutorials I could though) and really not that good at programming either. Hopefully someone on here could give some advice.
We're trying to do a reaction time task. There should be an Audio file being played (with a fixation dot being presented in the mean-time) and when the file is done, two pictures should pop up and the participant should decide for one of them with a key press.
I'm having problems with two things though and maybe someone can help (or re-direct me to a discussion or tutorial that discusses this):
1. How can I make the experiment to advance after the audio file is done playing? To set the duration, I can only find button presses or a set amount of time (the audio files will differ in length though).
2. I'd Need two pictures being presented then from a pool of 20 pictures. However, the pictures have been pre-assigned to each audio file and are not being presented at random from the pool. There was something similar here and the awesome response already helped quite a bit, but there, the pictures have been picked at random. We have a list of audio files that are being played in sequence and two specific pictures (out of those 20) for each file. Maybe I could use a second list for the pictures, or something like that.
Thanks for the help!
Comments
Hi!
Thanks for the flattering, we like it
On your question about the sound duration: you can set the Duration of a sampler item to
sound
. In this way, the experiment will wait for the sound to stop before continuing.Your second question I don't quite get, I think. You have pictures that are supposed to be show directly after a specific audio file, so why not simply define some variables in a loop item? To be precise: define three variables: snd, img1, and img2. Set the amount of cycles to 10. For each of the 10 cycles, type in the appropriate combination of files, e.g.:
Now set the samplers sound file to
[snd]
, and the image files to[img1]
and[img2]
.Does that make sense? How to use variables is explained in each of the tutorials, so it might be worth going over those again. If this doesn't solve your problem, could you perhaps be more specific in terms of what you want to do exactly?
Good luck!
Thanks! Works like a charm.
The variables do make sense. We have over 1000 sound files, so I kind of wanted to avoid having to define so many variables, but if there isn't any problem with that, then I think that's the way to go.
Thanks again!