
<defaults>
/font = ("Courier New", -43, 700, 0, 49)
/inputdevice=voice
/screencolor=(255, 255, 255)
</defaults>

<response voice>
/mode=free
/timeoutduration = 2000
</response>

<expt>
/preinstructions = (demo)
/blocks = [1=stroop; 2=naming]
/postinstructions = (end)
</expt>

<block stroop>
/preinstructions=(stroop)
/trials=[1=ready; 2-21=random(yellow, green, blue, red, black)]
/errormessage=(errormessage, 0)
/blockfeedback=(latency, correct)
</block>

<block naming>
/preinstructions=(stroop)
/trials=[1=ready; 2-31=random(nyellow, ngreen, nblue, nred, nblack)]
/errormessage=(errormessage, 0)
/blockfeedback=(latency, correct)
</block>

<trial yellow>
/stimulustimes = [0=yellow]
/posttrialpause = 250
/validresponse = ("yellow" "green" "blue" "black" "red")
/correctresponse = ("yellow")
</trial>

<trial red>
/stimulustimes = [0=red]
/posttrialpause = 250
/validresponse = ("red" "green" "blue" "black" "red")
/correctresponse = ("red")
</trial>

<trial blue>
/stimulustimes = [0=blue]
/posttrialpause = 250
/validresponse = ("yellow" "green" "blue" "black" "red")
/correctresponse = ("blue")
</trial>

<trial black>
/stimulustimes = [0=black]
/posttrialpause = 250
/validresponse = ("yellow" "green" "blue" "black" "red")
/correctresponse = ("black")
</trial>

<trial green>
/stimulustimes = [0=green]
/posttrialpause = 250
/validresponse = ("yellow" "green" "blue" "black" "red")
/correctresponse = ("green")
</trial>

<namingtrial nyellow>
/stimulustimes = [0=yellow]
/posttrialpause = 250
/correctresponse = (yellow)
</namingtrial>

<namingtrial nred>
/stimulustimes = [0=red]
/posttrialpause = 250
/correctresponse = (red)
</namingtrial>

<namingtrial nblue>
/stimulustimes = [0=blue]
/posttrialpause = 250
/correctresponse = (blue)
</namingtrial>

<namingtrial nblack>
/stimulustimes = [0=black]
/posttrialpause = 250
/correctresponse = (black)
</namingtrial>

<namingtrial ngreen>
/stimulustimes = [0=green]
/posttrialpause = 250
/correctresponse = (green)
</namingtrial>

<trial ready>
/stimulustimes = [0=ready]
/correctresponse = (" ")
/inputdevice = keyboard
</trial>


*******************

<text red>
/items=colors
/color = (255,0,0)
</text>

<text blue>
/items=colors
/color = (0,0,255)
</text>

<text yellow>
/items=colors
/color = (255,255,0)
</text>

<text green>
/items=colors
/color = (0,255,0)
</text>

<text black>
/items=colors
/color = (0,0,0)
</text>

<item colors>
/1 ="         RED         "
/2 ="        GREEN        "
/3 ="        BLUE         "
/4 ="        BLACK        "
/5 ="       YELLOW        "
</item>

<text ready>
/items=("Press the space bar when you are ready to start")
/color = (100,100,100)
/txbgcolor = (transparent)
/area = (400 200)
</text>

<text errormessage>
/items=("          !          ")
/color = (255,0,0)
</text>

<instruct>
/nextkey=(" ")
/nextlabel = "Space Bar"
/font = ("Arial", -23, 400, 0, 34)
</instruct>

<page demo>  
^^^^^
		This script demos the Stroop Task
</page>

<page stroop>  
^^^^
On each of the following trials, the name of a
color will be displayed. Your task is to say aloud 
the color in which the name is printed.
</page>

<page naming>  
^^^^
On each of the following trials, the name of a
color will be displayed. Your task is to read aloud 
the color name.
</page>

<page end>  
^^^^^^
The Stroop demonstration is now concluded. 
</page>

