Post by emmamelanson on Jun 29, 2020 17:35:21 GMT
Hello all,
I am programming an experiment on the psychological refractory period and I'm getting errors for which I cannot account. I'm wondering if these errors could be due to the fast rate at which I'm presenting stimuli and recording values.
I will include a sample of my code for the condition of 100 ms SOA.
The first choice task is for a sound, high ("A" key) vs. low ("S" key), and the second is for a target letter, Y ("K" key") vs. Z ("L" key).
The sound is embedded within a stream of 13 letters, each presented for 34 ms, with 66 ms of blank screen between each. The sound always starts to play at 200 ms and in this condition the target letter is the very next stimuli (so it appears 100 ms after the sound began).
The errors that I get is that on around 10% of the trials a timeout is recorded for one of the two choice tasks, when I can say with certitude that I did in fact give two response within the delay.
Maybe I missed some mistakes in my code, I'm jut trying to figure out why I get these "false timeouts".
Any help is appreciated!
Here's a section of my code. I get "0"s for $soundkey or $letterkey and "3" aka timeout for the trial status ($trials), but I am sure I always pressed two keys on each trial.
Warning the code is quite long because I used multiple readkeys (for every segment of 34/66 ms of the trial) in order to record both response simultaneously while the stimuli kept being presented.
Thank you in advance!
Emma
I am programming an experiment on the psychological refractory period and I'm getting errors for which I cannot account. I'm wondering if these errors could be due to the fast rate at which I'm presenting stimuli and recording values.
I will include a sample of my code for the condition of 100 ms SOA.
The first choice task is for a sound, high ("A" key) vs. low ("S" key), and the second is for a target letter, Y ("K" key") vs. Z ("L" key).
The sound is embedded within a stream of 13 letters, each presented for 34 ms, with 66 ms of blank screen between each. The sound always starts to play at 200 ms and in this condition the target letter is the very next stimuli (so it appears 100 ms after the sound began).
The errors that I get is that on around 10% of the trials a timeout is recorded for one of the two choice tasks, when I can say with certitude that I did in fact give two response within the delay.
Maybe I missed some mistakes in my code, I'm jut trying to figure out why I get these "false timeouts".
Any help is appreciated!
Here's a section of my code. I get "0"s for $soundkey or $letterkey and "3" aka timeout for the trial status ($trials), but I am sure I always pressed two keys on each trial.
Warning the code is quite long because I used multiple readkeys (for every segment of 34/66 ms of the trial) in order to record both response simultaneously while the stimuli kept being presented.
Thank you in advance!
Emma
table prp
"high" "Y" "M" "E" "A" "Y" "N" "J" "U" "L" "R" "B" "T" "F" "G" 100 1 1 high 3
"high" "Y" "P" "O" "D" "S" "Y" "T" "U" "F" "K" "G" "Q" "R" "N" 200 1 1 high 3
"high" "Y" "N" "M" "J" "S" "I" "U" "Y" "C" "P" "A" "D" "V" "T" 400 1 1 high 3
"high" "Y" "V" "X" "M" "U" "K" "J" "B" "I" "T" "E" "A" "Y" "G" 900 1 1 high 3
"low" "Y" "D" "O" "P" "Y" "I" "Q" "A" "H" "F" "C" "M" "N" "K" 100 2 1 low 3
"low" "Y" "D" "A" "W" "O" "Y" "P" "U" "V" "T" "L" "H" "R" "B" 200 2 1 low 3
"low" "Y" "W" "J" "B" "R" "Q" "L" "Y" "M" "A" "F" "G" "V" "O" 400 2 1 low 3
"low" "Y" "U" "A" "O" "T" "W" "N" "K" "G" "S" "B" "L" "Y" "H" 900 2 1 low 3
"high" "Z" "W" "U" "A" "Z" "X" "T" "C" "Q" "J" "E" "O" "V" "B" 100 1 2 high 4
"high" "Z" "N" "P" "G" "J" "Z" "W" "O" "B" "D" "Q" "M" "V" "R" 200 1 2 high 4
"high" "Z" "K" "G" "U" "V" "T" "M" "Z" "J" "D" "H" "W" "R" "Q" 400 1 2 high 4
"high" "Z" "D" "E" "R" "S" "T" "J" "Q" "V" "C" "L" "O" "Z" "H" 900 1 2 high 4
"low" "Z" "T" "J" "N" "Z" "G" "M" "E" "C" "H" "W" "K" "F" "A" 100 2 2 low 4
"low" "Z" "K" "Q" "J" "L" "Z" "A" "R" "B" "U" "N" "C" "G" "I" 200 2 2 low 4
"low" "Z" "X" "W" "D" "F" "L" "P" "Z" "Q" "A" "T" "K" "R" "V" 400 2 2 low 4
"low" "Z" "V" "K" "C" "E" "F" "U" "P" "O" "H" "Q" "D" "Z" "L" 900 2 2 low 4
task prp
set $trialStat 0
set $soundRT 0
set $soundStat 0
set $letterRT 0
set $letterStat 0
delay 1500
table prp
font large
keys a s k l
set &letterdur 34
set &interletter 66
set &postdur 100
show text "+"
delay 1000
clear -1
show text @3
readkey @17 &letterdur
set $before1 RT
set $before1stat STATUS
clear screen
readkey @17 &interletter
set $before2 RT
set $before2stat STATUS
clear screen
show text @4
readkey @17 &letterdur
set $before3 RT
set $before3stat STATUS
clear screen
readkey @17 &interletter
set $before4 RT
set $before4stat STATUS
clear screen
draw off
show text @5
sound @19
draw on
readkey @17 &letterdur
set $readsound1 RT
set $readsound1stat STATUS
set $readsound1key KEY
clear screen
readkey @17 &interletter
set $intersound1 RT
set $intersound1stat STATUS
set $intersound1key KEY
clear screen
#####################################################################################################################################
################################### ####################################################
################################### SOA 100ms BLOC 1 ####################################################
################################### ####################################################
#####################################################################################################################################
if @16 == 100
show text @6 ######### HERE IS TARGET LETTER
readkey @20 &letterdur
set $readletter1 RT
set $readletter1stat STATUS
set $readletter1key KEY
clear screen
readkey @20 &interletter
set $interletter1 RT
set $interletter1stat STATUS
set $interletter1key KEY
clear screen
show text @7
readkey @20 &letterdur
set $readletter2 RT
set $readletter2stat STATUS
set $readletter2key KEY
clear screen
readkey @20 &interletter
set $interletter2 RT
set $interletter2stat STATUS
set $interletter2key KEY
clear screen
show text @8
readkey @20 &letterdur
set $readletter3 RT
set $readletter3stat STATUS
set $readletter3key KEY
clear screen
readkey @20 &interletter
set $interletter3 RT
set $interletter3stat STATUS
set $interletter3key KEY
clear screen
show text @9
readkey @20 &letterdur
set $readletter4 RT
set $readletter4stat STATUS
set $readletter4key KEY
clear screen
readkey @20 &interletter
set $interletter4 RT
set $interletter4stat STATUS
set $interletter4key KEY
clear screen
show text @10
readkey @20 &letterdur
set $readletter5 RT
set $readletter5stat STATUS
set $readletter5key KEY
clear screen
readkey @20 &interletter
set $interletter5 RT
set $interletter5stat STATUS
set $interletter5key KEY
clear screen
show text @11
readkey @20 &letterdur
set $readletter6 RT
set $readletter6stat STATUS
set $readletter6key KEY
clear screen
readkey @20 &interletter
set $interletter6 RT
set $interletter6stat STATUS
set $interletter6key KEY
clear screen
show text @12
readkey @20 &letterdur
set $readletter7 RT
set $readletter7stat STATUS
set $readletter7key KEY
clear screen
readkey @20 &interletter
set $interletter7 RT
set $interletter7stat STATUS
set $interletter7key KEY
clear screen
show text @13
readkey @20 &letterdur
set $readletter8 RT
set $readletter8stat STATUS
set $readletter8key KEY
clear screen
readkey @20 &interletter
set $interletter8 RT
set $interletter8stat STATUS
set $interletter8key KEY
clear screen
show text @14
readkey @20 &letterdur
set $readletter9 RT
set $readletter9stat STATUS
set $readletter9key KEY
clear screen
readkey @20 &interletter
set $interletter9 RT
set $interletter9stat STATUS
set $interletter9key KEY
clear screen
show text @15
readkey @20 &letterdur
set $readletter10 RT
set $readletter10stat STATUS
set $readletter10key KEY
clear screen
readkey @20 &interletter
set $interletter10 RT
set $interletter10stat STATUS
set $interletter10key KEY
clear screen
readkey @20 &postdur ### changed to 2000 inst of 1500
set $post1 RT
set $post1stat STATUS
set $post1key KEY
readkey @20 &postdur
set $post2 RT
set $post2stat STATUS
set $post2key KEY
readkey @20 &postdur
set $post3 RT
set $post3stat STATUS
set $post3key KEY
readkey @20 &postdur
set $post4 RT
set $post4stat STATUS
set $post4key KEY
readkey @20 &postdur
set $post5 RT
set $post5stat STATUS
set $post5key KEY
readkey @20 &postdur
set $post6 RT
set $post6stat STATUS
set $post6key KEY
readkey @20 &postdur
set $post7 RT
set $post7stat STATUS
set $post7key KEY
readkey @20 &postdur
set $post8 RT
set $post8stat STATUS
set $post8key KEY
readkey @20 &postdur
set $post9 RT
set $post9stat STATUS
set $post9key KEY
readkey @20 &postdur
set $post10 RT
set $post10stat STATUS
set $post10key KEY
readkey @20 &postdur
set $post11 RT
set $post11stat STATUS
set $post11key KEY
readkey @20 &postdur
set $post12 RT
set $post12stat STATUS
set $post12key KEY
readkey @20 &postdur
set $post13 RT
set $post13stat STATUS
set $post13key KEY
readkey @20 &postdur
set $post14 RT
set $post14stat STATUS
set $post14key KEY
readkey @20 &postdur
set $post15 RT
set $post15stat STATUS
set $post15key KEY
readkey @20 &postdur
set $post16 RT
set $post16stat STATUS
set $post16key KEY
readkey @20 &postdur
set $post17 RT
set $post17stat STATUS
set $post17key KEY
readkey @20 &postdur
set $post18 RT
set $post18stat STATUS
set $post18key KEY
readkey @20 &postdur
set $post19 RT
set $post19stat STATUS
set $post19key KEY
readkey @20 &postdur
set $post20 RT
set $post20stat STATUS
set $post20key KEY
###### trial over, now record values
if $before1stat != 3 || $before2stat != 3 || $before3stat != 3 || $before4stat != 3
set $soundRT 0
set $soundStat 2
set $letterRT 0
set $letterStat 2
set $soundkey 0
set $letterkey 0
set $trialStat 2
show text "Trop tôt!" 0 0 250 51 51
delay 1000
clear screen
save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
fi
if $before1stat == 3 && $before2stat == 3 && $before3stat == 3 && $before4stat == 3 ### dont forget to close this if
if $readsound1stat != TIMEOUT
if $readsound1key == @17
set $soundRT $readsound1
set $soundStat 1
set $letterStat 3
#
set $soundkey $readsound1key
fi
if $readsound1key != @17 && $readsound1key != 0
#set $soundRT 0
set $soundStat 2
set $trialStat 2
#set $letterRT 0
set $letterStat 2
#
set $soundkey $readsound1key
fi
fi
if $readsound1stat == 3 # no answer so set RT as the presentation time so far
set $soundRT $readsound1
set $soundStat 3
set $letterStat 3
#
set $soundkey 0
fi
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $intersound1stat != TIMEOUT
if $intersound1key == @17 && $soundStat == 3
set $soundRT expression $intersound1 + &letterdur
set $soundStat 1
#
set $soundkey $intersound1key
fi
if $intersound1key != @17 && $intersound1key != 0
#set $soundRT 0
set $soundStat 2
set $trialStat 2
#set $letterRT 0
set $letterStat 2
#
set $soundkey $intersound1key
fi
fi
if $intersound1stat == 3 && $soundStat == 3
set $soundRT expression $intersound1 + &letterdur #add this timeout to the sum of previous timeouts (1)
#
set $soundkey 0
fi
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter1stat != TIMEOUT
if $readletter1key != @20 && $readletter1key != @17 && $readletter1key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4 ### mistake but unknown if it's on sound or letter so both get 4
set $letterkey 4
fi
if $readletter1key == @17 && $soundStat == 3
set $soundRT expression $readletter1 + &letterdur + &interletter
set $soundStat 1
#
set $soundkey $readletter1key
if $letterStat == 3
set $letterRT $readletter1
#
set $letterkey 0
fi
fi
if $readletter1key == @20 && $letterStat == 3 ### first occasion to read letter so nothing to add to RT
set $letterRT $readletter1
set $letterStat 1
#
set $letterkey $readletter1key
if $soundStat == 3
set $soundRT expression $readletter1 + &letterdur + &interletter
#
set $soundkey 0
fi
fi
fi
if $readletter1stat == 3 && $soundStat == 3
set $soundRT expression $readletter1 + &letterdur + &interletter
#
set $soundkey 0
fi
if $readletter1stat == 3 && $letterStat == 3
set $letterRT expression $readletter1 ## bc at this point there is no previous readletter..
#
set $letterkey 0
fi
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter1stat != TIMEOUT
if $interletter1key != @20 && $interletter1key != @17 && $interletter1key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter1key == @17 && $soundStat == 3
set $soundRT expression $interletter1 + (&letterdur) * 2 + &interletter
set $soundStat 1
#
set $soundkey $interletter1key
if $letterStat == 3
set $letterRT expression $interletter1 + &letterdur
#
set $letterkey 0
fi
fi
if $interletter1key == @20 && $letterStat == 3
set $letterRT expression $interletter1 + &letterdur
set $letterStat 1
#
set $letterkey $interletter1key
if $soundStat == 3
set $soundRT expression $interletter1 + (&letterdur) * 2 + &interletter
#
set $soundkey 0
fi
fi
fi
if $interletter1stat == 3 && $soundStat == 3
set $soundRT expression $interletter1 + (&letterdur) * 2 + &interletter
#
set $soundkey 0
fi
if $interletter1stat == 3 && $letterStat == 3
set $letterRT expression $interletter1 + &letterdur
#
set $letterkey 0
fi
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter2stat != TIMEOUT
if $readletter2key != @20 && $readletter2key != @17 && $readletter2key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $readletter2key == @17 && $soundStat == 3
set $soundRT expression $readletter2 + (&letterdur) * 2 + (&interletter) * 2
set $soundStat 1
#
set $soundkey $readletter2key
if $letterStat == 3
set $letterRT expression $readletter2 + &letterdur + &interletter
#
set $letterkey 0
fi
fi
if $readletter2key == @20 && $letterStat == 3
set $letterRT expression $readletter2 + &letterdur + &interletter
set $letterStat 1
#
set $letterkey $readletter2key
if $soundStat == 3
set $soundRT expression $readletter2 + (&letterdur) * 2 + (&interletter) * 2
#
set $soundkey 0
fi
fi
fi
if $readletter2stat == 3 && $soundStat == 3
set $soundRT expression $readletter2 + (&letterdur) * 2 + (&interletter) * 2
#
set $soundkey 0
fi
if $readletter2stat == 3 && $letterStat == 3
set $letterRT expression $readletter2 + &letterdur + &interletter
#
set $letterkey 0
fi
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter2stat != TIMEOUT
if $interletter2key != @20 && $interletter2key != @17 && $interletter2key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter2key == @17 && $soundStat == 3
set $soundRT expression $interletter2 + (&letterdur) * 3 + (&interletter) * 2
set $soundStat 1
#
set $soundkey $interletter2key
if $letterStat == 3
set $letterRT expression $interletter2 + (&letterdur) * 2 + &interletter
#
set $letterkey 0
fi
fi
if $interletter2key == @20 && $letterStat == 3
set $letterRT expression $interletter2 + (&letterdur) * 2 + &interletter
set $letterStat 1
#
set $letterkey $interletter2key
if $soundStat == 3
set $soundRT expression $interletter2 + (&letterdur) * 3 + (&interletter) * 2
#
set $soundkey 0
fi
fi
fi
if $interletter2stat == 3 && $soundStat == 3
set $soundRT expression $interletter2 + (&letterdur) * 3 + (&interletter) * 2
#
set $soundkey 0
fi
if $interletter2stat == 3 && $letterStat == 3
set $letterRT expression $interletter2 + (&letterdur) * 2 + &interletter
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter3stat != TIMEOUT
if $readletter3key != @20 && $readletter3key != @17 && $readletter3key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $readletter3key == @17 && $soundStat == 3
set $soundRT expression $readletter3 + (&letterdur) * 3 + (&interletter) * 3
set $soundStat 1
#
set $soundkey $readletter3key
if $letterStat == 3
set $letterRT expression $readletter3 + (&letterdur) * 2 + (&interletter) * 2
#
set $letterkey 0
fi
fi
if $readletter3key == @20 && $letterStat == 3
set $letterRT expression $readletter3 + (&letterdur) * 2 + (&interletter) * 2
set $letterStat 1
#
set $letterkey $readletter3key
if $soundStat == 3
set $soundRT expression $readletter3 + (&letterdur) * 3 + (&interletter) * 3
#
set $soundkey 0
fi
fi
fi
if $readletter3stat == 3 && $soundStat == 3
set $soundRT expression $readletter3 + (&letterdur) * 3 + (&interletter) * 3
#
set $soundkey 0
fi
if $readletter3stat == 3 && $letterStat == 3
set $letterRT expression $readletter3 + (&letterdur) * 2 + (&interletter) * 2
#
set $letterkey 0
fi
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter3stat != TIMEOUT
if $interletter3key != @20 && $interletter3key != @17 && $interletter3key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter3key == @17 && $soundStat == 3
set $soundRT expression $interletter3 + (&letterdur) * 4 + (&interletter) * 3
set $soundStat 1
#
set $soundkey $interletter3key
if $letterStat == 3
set $letterRT expression $interletter3 + (&letterdur) * 3 + (&interletter) * 2
#
set $letterkey 0
fi
fi
if $interletter3key == @20 && $letterStat == 3
set $letterRT expression $interletter3 + (&letterdur) * 3 + (&interletter) * 2
set $letterStat 1
#
set $letterkey $interletter3key
if $soundStat == 3
set $soundRT expression $interletter3 + (&letterdur) * 4 + (&interletter) * 3
#
set $soundkey 0
fi
fi
fi
if $interletter3stat == 3 && $soundStat == 3
set $soundRT expression $interletter3 + (&letterdur) * 4 + (&interletter) * 3
#
set $soundkey 0
fi
if $interletter3stat == 3 && $letterStat == 3
set $letterRT expression $interletter3 + (&letterdur) * 3 + (&interletter) * 2
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter4stat != TIMEOUT
if $readletter4key != @20 && $readletter4key != @17 && $readletter4key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $readletter4key == @17 && $soundStat == 3
set $soundRT expression $readletter4 + (&letterdur) * 4 + (&interletter) * 4
set $soundStat 1
#
set $soundkey $readletter4key
if $letterStat == 3
set $letterRT expression $readletter4 + (&letterdur) * 3 + (&interletter) * 3
#
set $letterkey 0
fi
fi
if $readletter4key == @20 && $letterStat == 3
set $letterRT expression $readletter4 + (&letterdur) * 3 + (&interletter) * 3
set $letterStat 1
#
set $letterkey $readletter4key
if $soundStat == 3
set $soundRT expression $readletter4 + (&letterdur) * 4 + (&interletter) * 4
#
set $soundkey 0
fi
fi
fi
if $readletter4stat == 3 && $soundStat == 3
set $soundRT expression $readletter4 + (&letterdur) * 4 + (&interletter) * 4
#
set $soundkey 0
fi
if $readletter4stat == 3 && $letterStat == 3
set $letterRT expression $readletter4 + (&letterdur) * 3 + (&interletter) * 3
#
set $letterkey 0
fi
###
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter4stat != TIMEOUT
if $interletter4key != @20 && $interletter4key != @17 && $interletter4key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter4key == @17 && $soundStat == 3
set $soundRT expression $interletter4 + (&letterdur) * 5 + (&interletter) * 4
set $soundStat 1
#
set $soundkey $interletter4key
if $letterStat == 3
set $letterRT expression $interletter4 + (&letterdur) * 4 + (&interletter) * 3
#
set $letterkey 0
fi
fi
if $interletter4key == @20 && $letterStat == 3
set $letterRT expression $interletter4 + (&letterdur) * 4 + (&interletter) * 3
set $letterStat 1
#
set $letterkey $interletter4key
if $soundStat == 3
set $soundRT expression $interletter4 + (&letterdur) * 5 + (&interletter) * 4
#
set $soundkey 0
fi
fi
fi
if $interletter4stat == 3 && $soundStat == 3
set $soundRT expression $interletter4 + (&letterdur) * 5 + (&interletter) * 4
#
set $soundkey 0
fi
if $interletter4stat == 3 && $letterStat == 3
set $letterRT expression $interletter4 + (&letterdur) * 4 + (&interletter) * 3
#
set $letterkey 0
fi
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter5stat != TIMEOUT
if $readletter5key != @20 && $readletter5key != @17 && $readletter5key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $readletter5key == @17 && $soundStat == 3
set $soundRT expression $readletter5 + (&letterdur) * 5 + (&interletter) * 5
set $soundStat 1
#
set $soundkey $readletter5key
if $letterStat == 3
set $letterRT expression $readletter5 + (&letterdur) * 4 + (&interletter) * 4
#
set $letterkey 0
fi
fi
if $readletter5key == @20 && $letterStat == 3
set $letterRT expression $readletter5 + (&letterdur) * 4 + (&interletter) * 4
set $letterStat 1
#
set $letterkey $readletter5key
if $soundStat == 3
set $soundRT expression $readletter5 + (&letterdur) * 5 + (&interletter) * 5
#
set $soundkey 0
fi
fi
fi
if $readletter5stat == 3 && $soundStat == 3
set $soundRT expression $readletter5 + (&letterdur) * 5 + (&interletter) * 5
#
set $soundkey 0
fi
if $readletter5stat == 3 && $letterStat == 3
set $letterRT expression $readletter5 + (&letterdur) * 4 + (&interletter) * 4
#
set $letterkey 0
fi
###
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter5stat != TIMEOUT
if $interletter5key != @20 && $interletter5key != @17 && $interletter5key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter5key == @17 && $soundStat == 3
set $soundRT expression $interletter5 + (&letterdur) * 6 + (&interletter) * 5
set $soundStat 1
#
set $soundkey $interletter5key
if $letterStat == 3
set $letterRT expression $interletter5 + (&letterdur) * 5 + (&interletter) * 4
#
set $letterkey 0
fi
fi
if $interletter5key == @20 && $letterStat == 3
set $letterRT expression $interletter5 + (&letterdur) * 5 + (&interletter) * 4
set $letterStat 1
#
set $letterkey $interletter5key
if $soundStat == 3
set $soundRT expression $interletter5 + (&letterdur) * 6 + (&interletter) * 5
#
set $soundkey 0
fi
fi
fi
if $interletter5stat == 3 && $soundStat == 3
set $soundRT expression $interletter5 + (&letterdur) * 6 + (&interletter) * 5
#
set $soundkey 0
fi
if $interletter5stat == 3 && $letterStat == 3
set $letterRT expression $interletter5 + (&letterdur) * 5 + (&interletter) * 4
#
set $letterkey 0
fi
###
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter6stat != TIMEOUT
if $readletter6key != @20 && $readletter6key != @17 && $readletter6key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $readletter6key == @17 && $soundStat == 3
set $soundRT expression $readletter6 + (&letterdur) * 6 + (&interletter) * 6
set $soundStat 1
#
set $soundkey $readletter6key
if $letterStat == 3
set $letterRT expression $readletter6 + (&letterdur) * 5 + (&interletter) * 5
#
set $letterkey 0
fi
fi
if $readletter6key == @20 && $letterStat == 3
set $letterRT expression $readletter6 + (&letterdur) * 5 + (&interletter) * 5
set $letterStat 1
#
set $letterkey $readletter6key
if $soundStat == 3
set $soundRT expression $readletter6 + (&letterdur) * 6 + (&interletter) * 6
#
set $soundkey 0
fi
fi
fi
if $readletter6stat == 3 && $soundStat == 3
set $soundRT expression $readletter6 + (&letterdur) * 6 + (&interletter) * 6
#
set $soundkey 0
fi
if $readletter6stat == 3 && $letterStat == 3
set $letterRT expression $readletter6 + (&letterdur) * 5 + (&interletter) * 5
#
set $letterkey 0
fi
###
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter6stat != TIMEOUT
if $interletter6key != @20 && $interletter6key != @17 && $interletter6key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter6key == @17 && $soundStat == 3
set $soundRT expression $interletter6 + (&letterdur) * 7 + (&interletter) * 6
set $soundStat 1
#
set $soundkey $interletter6key
if $letterStat == 3
set $letterRT expression $interletter6 + (&letterdur) * 6 + (&interletter) * 5
#
set $letterkey 0
fi
fi
if $interletter6key == @20 && $letterStat == 3
set $letterRT expression $interletter6 + (&letterdur) * 6 + (&interletter) * 5
set $letterStat 1
#
set $letterkey $interletter6key
if $soundStat == 3
set $soundRT expression $interletter6 + (&letterdur) * 7 + (&interletter) * 6
#
set $soundkey 0
fi
fi
fi
if $interletter6stat == 3 && $soundStat == 3
set $soundRT expression $interletter6 + (&letterdur) * 7 + (&interletter) * 6
#
set $soundkey 0
fi
if $interletter6stat == 3 && $letterStat == 3
set $letterRT expression $interletter6 + (&letterdur) * 6 + (&interletter) * 5
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter7stat != TIMEOUT
if $readletter7key != @20 && $readletter7key != @17 && $readletter7key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $readletter7key == @17 && $soundStat == 3
set $soundRT expression $readletter7 + (&letterdur) * 7 + (&interletter) * 7
set $soundStat 1
#
set $soundkey $readletter7key
if $letterStat == 3
set $letterRT expression $readletter7 + (&letterdur) * 6 + (&interletter) * 6
#
set $letterkey 0
fi
fi
if $readletter7key == @20 && $letterStat == 3
set $letterRT expression $readletter7 + (&letterdur) * 6 + (&interletter) * 6
set $letterStat 1
#
set $letterkey $readletter7key
if $soundStat == 3
set $soundRT expression $readletter7 + (&letterdur) * 7 + (&interletter) * 7
#
set $soundkey 0
fi
fi
fi
if $readletter7stat == 3 && $soundStat == 3
set $soundRT expression $readletter7 + (&letterdur) * 7 + (&interletter) * 7
#
set $soundkey 0
fi
if $readletter7stat == 3 && $letterStat == 3
set $letterRT expression $readletter7 + (&letterdur) * 6 + (&interletter) * 6
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter7stat != TIMEOUT
if $interletter7key != @20 && $interletter7key != @17 && $interletter7key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter7key == @17 && $soundStat == 3
set $soundRT expression $interletter7 + (&letterdur) * 8 + (&interletter) * 7
set $soundStat 1
#
set $soundkey $interletter7key
if $letterStat == 3
set $letterRT expression $interletter7 + (&letterdur) * 7 + (&interletter) * 6
#
set $letterkey 0
fi
fi
if $interletter7key == @20 && $letterStat == 3
set $letterRT expression $interletter7 + (&letterdur) * 7 + (&interletter) * 6
set $letterStat 1
#
set $letterkey $interletter7key
if $soundStat == 3
set $soundRT expression $interletter7 + (&letterdur) * 8 + (&interletter) * 7
#
set $soundkey 0
fi
fi
fi
if $interletter7stat == 3 && $soundStat == 3
set $soundRT expression $interletter7 + (&letterdur) * 8 + (&interletter) * 7
#
set $soundkey 0
fi
if $interletter7stat == 3 && $letterStat == 3
set $letterRT expression $interletter7 + (&letterdur) * 7 + (&interletter) * 6
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter8stat != TIMEOUT
if $readletter8key != @20 && $readletter8key != @17 && $readletter8key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $readletter8key == @17 && $soundStat == 3
set $soundRT expression $readletter8 + (&letterdur) * 8 + (&interletter) * 8
set $soundStat 1
#
set $soundkey $readletter8key
if $letterStat == 3
set $letterRT expression $readletter8 + (&letterdur) * 7 + (&interletter) * 7
#
set $letterkey 0
fi
fi
if $readletter8key == @20 && $letterStat == 3
set $letterRT expression $readletter8 + (&letterdur) * 7 + (&interletter) * 7
set $letterStat 1
#
set $letterkey $readletter8key
if $soundStat == 3
set $soundRT expression $readletter8 + (&letterdur) * 8 + (&interletter) * 8
#
set $soundkey 0
fi
fi
fi
if $readletter8stat == 3 && $soundStat == 3
set $soundRT expression $readletter8 + (&letterdur) * 8 + (&interletter) * 8
#
set $soundkey 0
fi
if $readletter8stat == 3 && $letterStat == 3
set $letterRT expression $readletter8 + (&letterdur) * 7 + (&interletter) * 7
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter8stat != TIMEOUT
if $interletter8key != @20 && $interletter8key != @17 && $interletter8key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter8key == @17 && $soundStat == 3
set $soundRT expression $interletter8 + (&letterdur) * 9 + (&interletter) * 8
set $soundStat 1
#
set $soundkey $interletter8key
if $letterStat == 3
set $letterRT expression $interletter8 + (&letterdur) * 8 + (&interletter) * 7
#
set $letterkey 0
fi
fi
if $interletter8key == @20 && $letterStat == 3
set $letterRT expression $interletter8 + (&letterdur) * 8 + (&interletter) * 7
set $letterStat 1
#
set $letterkey $interletter8key
if $soundStat == 3
set $soundRT expression $interletter8 + (&letterdur) * 9 + (&interletter) * 8
#
set $soundkey 0
fi
fi
fi
if $interletter8stat == 3 && $soundStat == 3
set $soundRT expression $interletter8 + (&letterdur) * 9 + (&interletter) * 8
#
set $soundkey 0
fi
if $interletter8stat == 3 && $letterStat == 3
set $letterRT expression $interletter8 + (&letterdur) * 8 + (&interletter) * 7
#
set $letterkey 0
fi
#
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter9stat != TIMEOUT
if $readletter9key != @20 && $readletter9key != @17 && $readletter9key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $readletter9key == @17 && $soundStat == 3
set $soundRT expression $readletter9 + (&letterdur) * 9 + (&interletter) * 9
set $soundStat 1
#
set $soundkey $readletter9key
if $letterStat == 3
set $letterRT expression $readletter9 + (&letterdur) * 8 + (&interletter) * 8
#
set $letterkey 0
fi
fi
if $readletter9key == @20 && $letterStat == 3
set $letterRT expression $readletter9 + (&letterdur) * 8 + (&interletter) * 8
set $letterStat 1
#
set $letterkey $readletter9key
if $soundStat == 3
set $soundRT expression $readletter9 + (&letterdur) * 9 + (&interletter) * 9
#
set $soundkey 0
fi
fi
fi
if $readletter9stat == 3 && $soundStat == 3
set $soundRT expression $readletter9 + (&letterdur) * 9 + (&interletter) * 9
#
set $soundkey 0
fi
if $readletter9stat == 3 && $letterStat == 3
set $letterRT expression $readletter9 + (&letterdur) * 8 + (&interletter) * 8
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter9stat != TIMEOUT
if $interletter9key != @20 && $interletter9key != @17 && $interletter9key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter9key == @17 && $soundStat == 3
set $soundRT expression $interletter9 + (&letterdur) * 10 + (&interletter) * 9
set $soundStat 1
#
set $soundkey $interletter9key
if $letterStat == 3
set $letterRT expression $interletter9 + (&letterdur) * 9 + (&interletter) * 8
#
set $letterkey 0
fi
fi
if $interletter9key == @20 && $letterStat == 3
set $letterRT expression $interletter9 + (&letterdur) * 9 + (&interletter) * 8
set $letterStat 1
#
set $letterkey $interletter9key
if $soundStat == 3
set $soundRT expression $interletter9 + (&letterdur) * 10 + (&interletter) * 9
#
set $soundkey 0
fi
fi
fi
if $interletter9stat == 3 && $soundStat == 3
set $soundRT expression $interletter9 + (&letterdur) * 10 + (&interletter) * 9
#
set $soundkey 0
fi
if $interletter9stat == 3 && $letterStat == 3
set $letterRT expression $interletter9 + (&letterdur) * 9 + (&interletter) * 8
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $readletter10stat != TIMEOUT
if $readletter10key != @20 && $readletter10key != @17 && $readletter10key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $readletter10key == @17 && $soundStat == 3
set $soundRT expression $readletter10 + (&letterdur) * 10 + (&interletter) * 10
set $soundStat 1
#
set $soundkey $readletter10key
if $letterStat == 3
set $letterRT expression $readletter10 + (&letterdur) * 9 + (&interletter) * 9
#
set $letterkey 0
fi
fi
if $readletter10key == @20 && $letterStat == 3
set $letterRT expression $readletter10 + (&letterdur) * 9 + (&interletter) * 9
set $letterStat 1
#
set $letterkey $readletter10key
if $soundStat == 3
set $soundRT expression $readletter10 + (&letterdur) * 10 + (&interletter) * 10
#
set $soundkey 0
fi
fi
fi
if $readletter10stat == 3 && $soundStat == 3
set $soundRT expression $readletter10 + (&letterdur) * 10 + (&interletter) * 10
#
set $soundkey 0
fi
if $readletter10stat == 3 && $letterStat == 3
set $letterRT expression $readletter10 + (&letterdur) * 9 + (&interletter) * 9
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $interletter10stat != TIMEOUT
if $interletter10key != @20 && $interletter10key != @17 && $interletter10key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $interletter10key == @17 && $soundStat == 3
set $soundRT expression $interletter10 + (&letterdur) * 11 + (&interletter) * 10
set $soundStat 1
#
set $soundkey $interletter10key
if $letterStat == 3
set $letterRT expression $interletter10 + (&letterdur) * 10 + (&interletter) * 9
#
set $letterkey 0
fi
fi
if $interletter10key == @20 && $letterStat == 3
set $letterRT expression $interletter10 + (&letterdur) * 10 + (&interletter) * 9
set $letterStat 1
#
set $letterkey $interletter10key
if $soundStat == 3
set $soundRT expression $interletter10 + (&letterdur) * 11 + (&interletter) * 10
#
set $soundkey 0
fi
fi
fi
if $interletter10stat == 3 && $soundStat == 3
set $soundRT expression $interletter10 + (&letterdur) * 11 + (&interletter) * 10
#
set $soundkey 0
fi
if $interletter10stat == 3 && $letterStat == 3
set $letterRT expression $interletter10 + (&letterdur) * 10 + (&interletter) * 9
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $post1stat != TIMEOUT
if $post1key != @20 && $post1key != @17 && $post1key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $post1key == @17 && $soundStat == 3
set $soundRT expression $post1 + (&letterdur) * 11 + (&interletter) * 11
set $soundStat 1
#
set $soundkey $post1key
if $letterStat == 3
set $letterRT expression $post1 + (&letterdur) * 10 + (&interletter) * 10
#
set $letterkey 0
fi
fi
if $post1key == @20 && $letterStat == 3
set $letterRT expression $post1 + (&letterdur) * 10 + (&interletter) * 10
set $letterStat 1
#
set $letterkey $post1key
if $soundStat == 3
set $soundRT expression $post1 + (&letterdur) * 11 + (&interletter) * 11
#
set $soundkey 0
fi
fi
fi
if $post1stat == 3 && $soundStat == 3
set $soundRT expression $post1 + (&letterdur) * 11 + (&interletter) * 11
#
set $soundkey 0
fi
if $post1stat == 3 && $letterStat == 3
set $letterRT expression $post1 + (&letterdur) * 10 + (&interletter) * 10
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $post2stat != TIMEOUT
if $post2key != @20 && $post2key != @17 && $post2key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $post2key == @17 && $soundStat == 3
set $soundRT expression $post2 + (&letterdur) * 11 + (&interletter) * 11 + &postdur
set $soundStat 1
#
set $soundkey $post2key
if $letterStat == 3
set $letterRT expression $post2 + (&letterdur) * 10 + (&interletter) * 10 + &postdur
#
set $letterkey 0
fi
fi
if $post2key == @20 && $letterStat == 3
set $letterRT expression $post2 + (&letterdur) * 10 + (&interletter) * 10 + &postdur
set $letterStat 1
#
set $letterkey $post2key
if $soundStat == 3
set $soundRT expression $post2 + (&letterdur) * 11 + (&interletter) * 11 + &postdur
#
set $soundkey 0
fi
fi
fi
if $post2stat == 3 && $soundStat == 3
set $soundRT expression $post2 + (&letterdur) * 11 + (&interletter) * 11 + &postdur
#
set $soundkey 0
fi
if $post2stat == 3 && $letterStat == 3
set $letterRT expression $post2 + (&letterdur) * 10 + (&interletter) * 10 + &postdur
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $post3stat != TIMEOUT
if $post3key != @20 && $post3key != @17 && $post3key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $post3key == @17 && $soundStat == 3
set $soundRT expression $post3 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 2
set $soundStat 1
#
set $soundkey $post3key
if $letterStat == 3
set $letterRT expression $post3 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 2
#
set $letterkey 0
fi
fi
if $post3key == @20 && $letterStat == 3
set $letterRT expression $post3 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 2
set $letterStat 1
#
set $letterkey $post3key
if $soundStat == 3
set $soundRT expression $post3 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 2
#
set $soundkey 0
fi
fi
fi
if $post3stat == 3 && $soundStat == 3
set $soundRT expression $post3 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 2
#
set $soundkey 0
fi
if $post3stat == 3 && $letterStat == 3
set $letterRT expression $post3 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 2
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $post4stat != TIMEOUT
if $post4key != @20 && $post4key != @17 && $post4key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $post4key == @17 && $soundStat == 3
set $soundRT expression $post4 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 3
set $soundStat 1
#
set $soundkey $post4key
if $letterStat == 3
set $letterRT expression $post4 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 3
#
set $letterkey 0
fi
fi
if $post4key == @20 && $letterStat == 3
set $letterRT expression $post4 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 3
set $letterStat 1
#
set $letterkey $post4key
if $soundStat == 3
set $soundRT expression $post4 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 3
#
set $soundkey 0
fi
fi
fi
if $post4stat == 3 && $soundStat == 3
set $soundRT expression $post4 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 3
#
set $soundkey 0
fi
if $post4stat == 3 && $letterStat == 3
set $letterRT expression $post4 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 3
#
set $letterkey 0
fi
##
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $post5stat != TIMEOUT
if $post5key != @20 && $post5key != @17 && $post5key != 0
#set $soundRT 0
set $soundStat 2
#set $letterRT 0
set $letterStat 2
set $trialStat 2
set $soundkey 4
set $letterkey 4
fi
if $post5key == @17 && $soundStat == 3
set $soundRT expression $post5 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 4
set $soundStat 1
#
set $soundkey $post5key
if $letterStat == 3
set $letterRT expression $post5 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 4
#
set $letterkey 0
fi
fi
if $post5key == @20 && $letterStat == 3
set $letterRT expression $post5 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 4
set $letterStat 1
#
set $letterkey $post5key
if $soundStat == 3
set $soundRT expression $post5 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 4
#
set $soundkey 0
fi
fi
fi
###### I cut out postkey6-postkey19 because it's all the same and long for nothing
if $post20key == @17 && $soundStat == 3
set $soundRT expression $post20 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 19
set $soundStat 1
#
set $soundkey $post20key
if $letterStat == 3
set $letterRT expression $post20 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 19
#
set $letterkey 0
fi
fi
if $post20key == @20 && $letterStat == 3
set $letterRT expression $post20 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 19
set $letterStat 1
#
set $letterkey $post20key
if $soundStat == 3
set $soundRT expression $post20 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 19
#
set $soundkey 0
fi
fi
fi
if $post20stat == 3 && $soundStat == 3
set $soundRT expression $post20 + (&letterdur) * 11 + (&interletter) * 11 + (&postdur) * 19
#
set $soundkey 0
fi
if $post20stat == 3 && $letterStat == 3
set $letterRT expression $post20 + (&letterdur) * 10 + (&interletter) * 10 + (&postdur) * 19
#
set $letterkey 0
fi
###
#save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
if $soundStat == 1 && $letterStat == 1
show text "Correct" 0 0 51 51 250
delay 1000
clear screen
set $trialStat 1
fi
if $soundStat == 1 && $letterStat == 3
set $trialStat 2
fi
if $soundStat == 3 && $letterStat == 1
set $trialStat 2
fi
if $soundStat == 3 && $letterStat == 3
show text "Incorrect" 0 0 250 51 51
delay 1000
clear screen
set $trialStat 3
fi
if $trialStat == 2
show text "Incorrect" 0 0 250 51 51
delay 1000
clear screen
fi
save @1 $soundRT $soundStat @16 @2 $letterRT $letterStat $trialStat @17 @20 $soundkey $letterkey
#
fi #closes the no too early
fi #closes the 100 ms SOAfonts