[solved] Trying to randomise my sounds, but it isn't working!
Ok, so I am trying to program an experiment in Open sesame. it is a pretty simple one on paper, however, I can't figure out how to make it work.
So the experiment has to do a few things: it makes a beep sound come out of either the left or right box of the computer, and the participant responds with a key press to indicate from which side the sound came(arrow left or right, doesn't matter much).
This process repeats itself for a set number of times, all the while recording if the keypress is correct or not. However, I cannot get the process to be random!
This is what I got so far (image on the left): http://i.imgur.com/Xj8kRmt.jpg
I know how to add pictures from the file pool to the loop to create variables, and make those random in sequence, but I don't know how to do the same with an audio block from Open sesame itself! Please help!
If you cannot understand my dillema, I could always try to explain myself in more detail.
Comments
Not sure I completely understand, but if you want sounds to randomly come from the right or left, add sound_position as a variable in the loop, eg. sound_position (left, right)
Then in the synth function, assign this variable to pan:
set pan "[sound_position]"
Currently in your sequence, leftsound is presented before rightsound which is a bit confusing if it should be random...
Yes! I figured that out just today.
Adding the variable sounddirection then in the code change the pan to [sounddirection] made it work! Kinda like you said!