Group: Administrators
Posts: 13K,
Visits: 105K
|
You simply set up a <trial> with a short /timeout or /trialduration, while simultaneously setting the <sound> (for WAV) or <video> (for any other audio formats) element's /playthrough attribute to 'true'. You then /branch to another <trial> that displays your message and accepts the spacebar as response:
<block someblock> / trials = [1-2=soundtrial] </block>
<trial soundtrial> / stimulusframes = [1=somesound] / validresponse = (0) / trialduration = 50 / branch = [trial.messagetrial] </trial>
<video somesound> / items = ("30seconds.mp3", "60seconds.mp3") / playthrough = true </video>
<trial messagetrial> / stimulusframes = [1=sometext] / validresponse = (57) </trial>
<text sometext> / items = ("Your message here") </text>
The audio will be played to completion (regardless of how long it is). Then the sound trial will automatically end and bring up the message trial.
|