By rkrosen - 10/1/2015
Hello. I am presenting trials in which a sound file will automatically play, and then two subsequent images (target and mask) will be presented sequentially. However, I do not want the images to appear until after the sound file ends. The problem is that there are multiple possible sound files that will be randomly chosen, and they are of varying lengths. Is it possible to present the images only after the sound file ends without specifying an exact time? Here is my code for the stimulus time with question marks where I would otherwise indicate a time. I'd like the target to be presented once sound file (PrimeA) ends and then the mask to be presented 200ms after that.
<trial primeA> / validresponse = ("E", "I") / correctresponse = ("I") / stimulustimes = [0=primeA; ??=target; ??=mask] /ontrialend = [values.primestim = sound.primea.currentitemnumber; values.targetstim = picture.target.currentitemnumber] </trial>
P.S. If this is not possible, I will just specify the timing of presentation based on the longest sound clip duration, but I wanted to see if I could avoid that.
|
By Dave - 10/1/2015
The easiest way to do this is to have your sound displayed by a separate trial. Once that trial is over, run the trial presenting your target and mask, i.e. something along the lines of
<sound PrimeA> / items = ("Long.wav", "Short.wav") / playthrough = true </sound>
<trial primeAsoundtrial> / stimulusframes = [1=PrimeA] / validresponse = (0) / trialduration = 20 / branch = [trial.primeA] / recorddata = false </trial>
<trial primeA> / validresponse = ("E", "I") / correctresponse = ("I") / stimulustimes = [0=target; 100=mask] /ontrialend = [values.primestim = sound.primea.currentitemnumber; values.targetstim = picture.target.currentitemnumber] </trial>
|
By rkrosen - 10/1/2015
Thanks!
|
|