problems with calculation in conditional if statement


Author
Message
eleonora_parr
eleonora_parr
Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)
Group: Forum Members
Posts: 34, Visits: 132
Dear Inquisiters, 
I am trying to program a sort of psychophisics in inquisit: participants have to synchronize their responses with the appearance of a circle on the screen. Their accuracy is calculated according to how many of their responses fell in an range of time that was very close to the appearance of this circle. This range is calculated according to the frequency at which this circle is showed, which is variable over time, and then, calculated based on the distance between one appearance and the subsequent one (i.e.  list.frequency.appenditem(60/((picture.red_circle.stimulusonset.2-picture.red_circle.stimulusonset.1)/1000));
So, if the calculated frequency is lower than 69.76, then the range of an accurate response is between -125 and +750 ms compared to the appearance of the circle
if it is between 69.76 and 94.25,  then the range of an accurate response is between -100 and +600 ms compared to the appearance of the circle

The code works until a certain point, specifically the calculation of the range based on the 21th calculated frequency : even if that frequency is lower than 69.76, the range is calculated as if the frequency was  between 69.76 and 94.25. I also could compared that as I saved all these variables (index_min, index_max, all the onsets and calculated frequency)... 
Does somebody knows what's going on??
You can just replace the images with two random pics, it doesn't really matters what it is shown.. 

Here is the code, thank you so much

Eleonora


<picture red_circle>
/ items = ("255.png")
/ position = (50%,50%)
/size=(30%, 30%)
</picture>


<picture black_circle>
/ items = ("195.png")
/ position = (50%,50%)
/size=(30%, 30%)
</picture>

<shape blank>
/ color = (195,195,195)
/ position = (50%,50%)
/ shape = rectangle
/size=(30%, 30%)
</shape>

<shape backgroundcolor>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
</shape>

<picture checker>
/items=("scacchieracc1.png")
/ position = (50%, 50%)
/ size = (30%, 30%)
</picture>


<trial blank>
/stimulusframes=[1=blank]
/ trialduration = 3000
</trial>

<text cross>
/items=("+")
/position = (50%, 50%)
</text>

<trial fixate>
/ stimulusframes = [1=cross]
/ trialduration = 2000
</trial>

<values>
/current_frequency = ""
/timeofresponse=""
/spacebarpresscount =""
/accuracy = ""
/sum_acc_betw =""
/sum_acc_69 = ""
/freq = ""
/min = ""
/max= ""
/corrlat=""
</values>

<text 60hz>
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ position = (50%, 50%)
/ txbgcolor = transparent
/ erase = false
/ txcolor = white

/ items = ("
    Benvenuto in questo esperimento e grazie per la tua partecipazione.
    Si tratta di un compito di due minuti e mezzo, ma e' molto importante
    che tu faccia del tuo meglio nell'esecuzione del compito.
    Assicurati che il tuo schermo sia impostato su un refresh rate di 60 Hz:
    per controllarlo esci dall'esperimento premendo CTRL+Q,
    poi vai nelle impostazioni del computer > Sistema > Schermo >
    Impostazioni Schermo Avanzate > Frequenza di Aggiornamento.
    Nel menu frequenza di aggiornamento controllare che il refresh rate sia impostato a 60 Hz.
    Se non lo e', fare click su Proprieta', nella sezione Monitor, e impostare nella tendina 60 Hz e quindi fare clic su OK.
    Quando hai impostato lo schermo a 60 Hz e sei pronto per iniziare l'esperimento, riapri il file dell'esperimento e premi
    'continua' in basso a destra per leggere le istruzioni. ")
</text>

<text continue>
/ items = ("Continua")
/ size = (9%, 5%)
/ position = (75%, 90%)
/ fontstyle = ("Trebuchet MS", 4%, false, false, false, false, 5, 1)
/ txbgcolor = white
/ txcolor = black
</text>


<trial 60hz>
/ ontrialbegin = [
  shape.backgroundcolor.color = black;]

/ stimulusframes = [1=clearscreen,backgroundcolor,60hz, continue]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (continue)
</trial>

<text instructions>
/ txbgcolor = transparent
/ erase = false
/ txcolor = white
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ position = (50%, 50%)
/ items = ("
Ora che il tuo monitor e' impostato al refresh rate di 60 Hz, leggi le istruzioni per procedere all'esperimento:
Appena l'esperimento comincera', vedrai una croce di fissazione apparire al centro dello schermo.
Dopo pochi secondi la croce scomparira', e poco dopo vedrai una scacchiera nera apparire al centro dello schermo.
Sotto alla scacchiera, vedrai ogni tanto apparire un cerchio bianco,
che scomparira' molto rapidamente. Il cerchio comparira' e scomparira' in maniera continuativa durante tutto
l'esperimento.
Il tuo compito sara' quello di premere la barra spaziatrice ogni volta che il cerchio bianco comparira',
sincronizzando la pressione della barra spaziatrice con ogni apparizione del cerchio bianco.
Cerca di essere il piu' accurato possibile e di premere la barra spaziatrice ogni
volta che il cerchio compare.
Premi 'continua' per continuare a leggere le istruzioni. ")
</text>


<text instructions2>
/ txbgcolor = transparent
/ erase = false
/ txcolor = white
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ position = (50%, 50%)
/ items = ("
    Alla fine dell'esperimento vedrai comparire una schermata grigia dove delle scritte indicano
    che il computer sta calcolando il livello di accuratezza.
    Quando questa schermata compare non fare nulla. Aspetta che il computer finisca il calcolo, ci vorranno un po' di minuti.
    Il calcolo finira' quando il livello di accuratezza in percentuale comparira' nell'ultima riga.
    Non devi preoccuparti del numero che otterrai, questo calcolo serve a noi per condurre delle statistiche ed esplorare la
    percezione visiva.
    Solo quando il PC ha finito il calcolo e l'accuratezza % e' stata calcolata, premi la barra spaziatrice per concludere.
    Appena sei pronto ad iniziare, premi continua qui sotto e posiziona subito la mano sulla barra spaziatrice
    per essere pronto a premerla sincronizzandoti con ogni volta che il cerchio bianco compare.")
</text>

<trial instructions1>
/ ontrialbegin = [
  shape.backgroundcolor.color = black;]

/ stimulusframes = [1=clearscreen,backgroundcolor,instructions, continue]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (continue)
</trial>

<trial instructions2>
/ ontrialbegin = [
  shape.backgroundcolor.color = black;]

/ stimulusframes = [1=clearscreen,backgroundcolor,instructions2, continue]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (continue)
</trial>

<trial acc>
/ ontrialbegin = [
values.spacebarpresscount = "";
values.timeofresponse = "";
values.accuracy = "";
values.current_onset = "";
values.current_max = "";
values.current_min = "";
values.current_latency = "";
values.sum_acc_latencies = 0;
values.bucketcount = 0;
values.latencycount = 0;
values.sum_counted = 0;
values.bucket_hit = 0;

list.acc.reset();
list.latencies.reset();
list.onsets.reset();
]
/pretrialpause = 1000
/stimulustimes=[
0=checker;
1000=red_circle;
1755=red_circle;
2494=red_circle;
3203=red_circle;
3964=red_circle;
4719=red_circle;
5486=red_circle;
6279=red_circle;
7063=red_circle;
7849=red_circle;
8637=red_circle;
9389=red_circle;
10167=red_circle;
10951=red_circle;
11712=red_circle;
12519=red_circle;
13360=red_circle;
14175=red_circle;
15038=red_circle;
15911=red_circle;
16778=red_circle;
17668=red_circle;
18552=red_circle;
19426=red_circle;
20307=red_circle;
21183=red_circle;
22038=red_circle;
22907=red_circle;
23770=red_circle;
24632=red_circle;
25525=red_circle;
26387=red_circle;
27266=red_circle;
28150=red_circle;
28979=red_circle;
29833=red_circle;
30671=red_circle;
31470=red_circle;
32296=red_circle;
33132=red_circle;
33951=red_circle;
34826=red_circle;
35658=red_circle;
36507=red_circle;
37375=red_circle;
38217=red_circle;
39070=red_circle;
39937=red_circle;
40760=red_circle;
41597=red_circle;
42432=red_circle;
43237=red_circle;
44052=red_circle;
44835=red_circle;
45625=red_circle;
46443=red_circle;
47251=red_circle;
48098=red_circle;
48972=red_circle;
49829=red_circle;
50680=red_circle;
51561=red_circle;
52408=red_circle;
53257=red_circle;
54101=red_circle;
54943=red_circle;
55757=red_circle;
56651=red_circle;
57572=red_circle;
58456=red_circle;
59364=red_circle;
60278=red_circle;
61142=red_circle;
62023=red_circle;
62889=red_circle;
63719=red_circle;
64588=red_circle;
65463=red_circle;
66277=red_circle;
67123=red_circle;
67973=red_circle;
68810=red_circle;
69650=red_circle;
70523=red_circle;
71386=red_circle;
72246=red_circle;
73150=red_circle;
74049=red_circle;
74912=red_circle;
75802=red_circle;
76699=red_circle;
77558=red_circle;
78444=red_circle;
79343=red_circle;
80190=red_circle;
81073=red_circle;
81964=red_circle;
82822=red_circle;
83729=red_circle;
84636=red_circle;
85511=red_circle;
86391=red_circle;
87287=red_circle;
88139=red_circle;
88962=red_circle;
89779=red_circle;
90585=red_circle;
91390=red_circle;
92235=red_circle;
93107=red_circle;
93924=red_circle;
94800=red_circle;
95685=red_circle;
96508=red_circle;
97367=red_circle;
98200=red_circle;
99034=red_circle;
99891=red_circle;
100744=red_circle;
101575=red_circle;
102429=red_circle;
103274=red_circle;
104087=red_circle;
104947=red_circle;
105852=red_circle;
106730=red_circle;
107626=red_circle;
108519=red_circle;
109353=red_circle;
110195=red_circle;
111044=red_circle;
111857=red_circle;
112660=red_circle;
113493=red_circle;
114340=red_circle;
115151=red_circle;
115994=red_circle;
116867=red_circle;
117726=red_circle;
118567=red_circle;
119449=red_circle;
120319=red_circle;
121148=red_circle;
122005=red_circle;
122849=red_circle;
123673=red_circle;
124482=red_circle;
125319=red_circle;
126153=red_circle;
126983=red_circle;
127852=red_circle;
128723=red_circle;
129598=red_circle;
130502=red_circle;
131375=red_circle;
132222=red_circle;
133075=red_circle;
133925=red_circle;
134732=red_circle;
135558=red_circle;
136399=red_circle;
137225=red_circle;
138043=red_circle;
138902=red_circle;
139764=red_circle;
140597=red_circle;
141489=red_circle;
142377=red_circle;
143212=red_circle;
144076=red_circle;
144938=red_circle;
145774=red_circle;
146614=red_circle;
147472=red_circle;
148297=red_circle;
149174=red_circle;
150095=red_circle;

1045=black_circle;
1800=black_circle;
2539=black_circle;
3248=black_circle;
4009=black_circle;
4764=black_circle;
5531=black_circle;
6324=black_circle;
7108=black_circle;
7894=black_circle;
8682=black_circle;
9434=black_circle;
10212=black_circle;
10996=black_circle;
11757=black_circle;
12564=black_circle;
13405=black_circle;
14220=black_circle;
15083=black_circle;
15956=black_circle;
16823=black_circle;
17713=black_circle;
18597=black_circle;
19471=black_circle;
20352=black_circle;
21228=black_circle;
22083=black_circle;
22952=black_circle;
23815=black_circle;
24677=black_circle;
25570=black_circle;
26432=black_circle;
27311=black_circle;
28195=black_circle;
29024=black_circle;
29878=black_circle;
30716=black_circle;
31515=black_circle;
32341=black_circle;
33177=black_circle;
33996=black_circle;
34871=black_circle;
35703=black_circle;
36552=black_circle;
37420=black_circle;
38262=black_circle;
39115=black_circle;
39982=black_circle;
40805=black_circle;
41642=black_circle;
42477=black_circle;
43282=black_circle;
44097=black_circle;
44880=black_circle;
45670=black_circle;
46488=black_circle;
47296=black_circle;
48143=black_circle;
49017=black_circle;
49874=black_circle;
50725=black_circle;
51606=black_circle;
52453=black_circle;
53302=black_circle;
54146=black_circle;
54988=black_circle;
55802=black_circle;
56696=black_circle;
57617=black_circle;
58501=black_circle;
59409=black_circle;
60323=black_circle;
61187=black_circle;
62068=black_circle;
62934=black_circle;
63764=black_circle;
64633=black_circle;
65508=black_circle;
66322=black_circle;
67168=black_circle;
68018=black_circle;
68855=black_circle;
69695=black_circle;
70568=black_circle;
71431=black_circle;
72291=black_circle;
73195=black_circle;
74094=black_circle;
74957=black_circle;
75847=black_circle;
76744=black_circle;
77603=black_circle;
78489=black_circle;
79388=black_circle;
80235=black_circle;
81118=black_circle;
82009=black_circle;
82867=black_circle;
83774=black_circle;
84681=black_circle;
85556=black_circle;
86436=black_circle;
87332=black_circle;
88184=black_circle;
89007=black_circle;
89824=black_circle;
90630=black_circle;
91435=black_circle;
92280=black_circle;
93152=black_circle;
93969=black_circle;
94845=black_circle;
95730=black_circle;
96553=black_circle;
97412=black_circle;
98245=black_circle;
99079=black_circle;
99936=black_circle;
100789=black_circle;
101620=black_circle;
102474=black_circle;
103319=black_circle;
104132=black_circle;
104992=black_circle;
105897=black_circle;
106775=black_circle;
107671=black_circle;
108564=black_circle;
109398=black_circle;
110240=black_circle;
111089=black_circle;
111902=black_circle;
112705=black_circle;
113538=black_circle;
114385=black_circle;
115196=black_circle;
116039=black_circle;
116912=black_circle;
117771=black_circle;
118612=black_circle;
119494=black_circle;
120364=black_circle;
121193=black_circle;
122050=black_circle;
122894=black_circle;
123718=black_circle;
124527=black_circle;
125364=black_circle;
126198=black_circle;
127028=black_circle;
127897=black_circle;
128768=black_circle;
129643=black_circle;
130547=black_circle;
131420=black_circle;
132267=black_circle;
133120=black_circle;
133970=black_circle;
134777=black_circle;
135603=black_circle;
136444=black_circle;
137270=black_circle;
138088=black_circle;
138947=black_circle;
139809=black_circle;
140642=black_circle;
141534=black_circle;
142422=black_circle;
143257=black_circle;
144121=black_circle;
144983=black_circle;
145819=black_circle;
146659=black_circle;
147517=black_circle;
148342=black_circle;
149219=black_circle;
150140=black_circle;


]
/ trialduration = 150140+1000
/ inputdevice = keyboard
/ beginresponsetime = -1
/ responseinterrupt = trial
/ validresponse = (-57, 0)
/ correctresponse = (0)
/ showmousecursor = false
/ isvalidresponse = [if(trial.acc.response==57){
values.spacebarpresscount += 1;
values.timeofresponse=concat(concat(values.timeofresponse, trial.acc.latency),",");
list.latencies.appenditem(trial.acc.latency);
false}
;
]
/ ontrialend = [
list.onsets.appenditem(picture.red_circle.stimulusonset.1);
list.onsets.appenditem(picture.red_circle.stimulusonset.2);
list.onsets.appenditem(picture.red_circle.stimulusonset.3);
list.onsets.appenditem(picture.red_circle.stimulusonset.4);
list.onsets.appenditem(picture.red_circle.stimulusonset.5);
list.onsets.appenditem(picture.red_circle.stimulusonset.6);
list.onsets.appenditem(picture.red_circle.stimulusonset.7);
list.onsets.appenditem(picture.red_circle.stimulusonset.8);
list.onsets.appenditem(picture.red_circle.stimulusonset.9);
list.onsets.appenditem(picture.red_circle.stimulusonset.10);
list.onsets.appenditem(picture.red_circle.stimulusonset.11);
list.onsets.appenditem(picture.red_circle.stimulusonset.12);
list.onsets.appenditem(picture.red_circle.stimulusonset.13);
list.onsets.appenditem(picture.red_circle.stimulusonset.14);
list.onsets.appenditem(picture.red_circle.stimulusonset.15);
list.onsets.appenditem(picture.red_circle.stimulusonset.16);
list.onsets.appenditem(picture.red_circle.stimulusonset.17);
list.onsets.appenditem(picture.red_circle.stimulusonset.18);
list.onsets.appenditem(picture.red_circle.stimulusonset.19);
list.onsets.appenditem(picture.red_circle.stimulusonset.20);
list.onsets.appenditem(picture.red_circle.stimulusonset.21);
list.onsets.appenditem(picture.red_circle.stimulusonset.22);
list.onsets.appenditem(picture.red_circle.stimulusonset.23);
list.onsets.appenditem(picture.red_circle.stimulusonset.24);
list.onsets.appenditem(picture.red_circle.stimulusonset.25);
list.onsets.appenditem(picture.red_circle.stimulusonset.26);
list.onsets.appenditem(picture.red_circle.stimulusonset.27);
list.onsets.appenditem(picture.red_circle.stimulusonset.28);
list.onsets.appenditem(picture.red_circle.stimulusonset.29);
list.onsets.appenditem(picture.red_circle.stimulusonset.30);
list.onsets.appenditem(picture.red_circle.stimulusonset.31);
list.onsets.appenditem(picture.red_circle.stimulusonset.32);
list.onsets.appenditem(picture.red_circle.stimulusonset.33);
list.onsets.appenditem(picture.red_circle.stimulusonset.34);
list.onsets.appenditem(picture.red_circle.stimulusonset.35);
list.onsets.appenditem(picture.red_circle.stimulusonset.36);
list.onsets.appenditem(picture.red_circle.stimulusonset.37);
list.onsets.appenditem(picture.red_circle.stimulusonset.38);
list.onsets.appenditem(picture.red_circle.stimulusonset.39);
list.onsets.appenditem(picture.red_circle.stimulusonset.40);
list.onsets.appenditem(picture.red_circle.stimulusonset.41);
list.onsets.appenditem(picture.red_circle.stimulusonset.42);
list.onsets.appenditem(picture.red_circle.stimulusonset.43);
list.onsets.appenditem(picture.red_circle.stimulusonset.44);
list.onsets.appenditem(picture.red_circle.stimulusonset.45);
list.onsets.appenditem(picture.red_circle.stimulusonset.46);
list.onsets.appenditem(picture.red_circle.stimulusonset.47);
list.onsets.appenditem(picture.red_circle.stimulusonset.48);
list.onsets.appenditem(picture.red_circle.stimulusonset.49);
list.onsets.appenditem(picture.red_circle.stimulusonset.50);
list.onsets.appenditem(picture.red_circle.stimulusonset.51);
list.onsets.appenditem(picture.red_circle.stimulusonset.52);
list.onsets.appenditem(picture.red_circle.stimulusonset.53);
list.onsets.appenditem(picture.red_circle.stimulusonset.54);
list.onsets.appenditem(picture.red_circle.stimulusonset.55);
list.onsets.appenditem(picture.red_circle.stimulusonset.56);
list.onsets.appenditem(picture.red_circle.stimulusonset.57);
list.onsets.appenditem(picture.red_circle.stimulusonset.58);
list.onsets.appenditem(picture.red_circle.stimulusonset.59);
list.onsets.appenditem(picture.red_circle.stimulusonset.60);
list.onsets.appenditem(picture.red_circle.stimulusonset.61);
list.onsets.appenditem(picture.red_circle.stimulusonset.62);
list.onsets.appenditem(picture.red_circle.stimulusonset.63);
list.onsets.appenditem(picture.red_circle.stimulusonset.64);
list.onsets.appenditem(picture.red_circle.stimulusonset.65);
list.onsets.appenditem(picture.red_circle.stimulusonset.66);
list.onsets.appenditem(picture.red_circle.stimulusonset.67);
list.onsets.appenditem(picture.red_circle.stimulusonset.68);
list.onsets.appenditem(picture.red_circle.stimulusonset.69);
list.onsets.appenditem(picture.red_circle.stimulusonset.70);
list.onsets.appenditem(picture.red_circle.stimulusonset.71);
list.onsets.appenditem(picture.red_circle.stimulusonset.72);
list.onsets.appenditem(picture.red_circle.stimulusonset.73);
list.onsets.appenditem(picture.red_circle.stimulusonset.74);
list.onsets.appenditem(picture.red_circle.stimulusonset.75);
list.onsets.appenditem(picture.red_circle.stimulusonset.76);
list.onsets.appenditem(picture.red_circle.stimulusonset.77);
list.onsets.appenditem(picture.red_circle.stimulusonset.78);
list.onsets.appenditem(picture.red_circle.stimulusonset.79);
list.onsets.appenditem(picture.red_circle.stimulusonset.80);
list.onsets.appenditem(picture.red_circle.stimulusonset.81);
list.onsets.appenditem(picture.red_circle.stimulusonset.82);
list.onsets.appenditem(picture.red_circle.stimulusonset.83);
list.onsets.appenditem(picture.red_circle.stimulusonset.84);
list.onsets.appenditem(picture.red_circle.stimulusonset.85);
list.onsets.appenditem(picture.red_circle.stimulusonset.86);
list.onsets.appenditem(picture.red_circle.stimulusonset.87);
list.onsets.appenditem(picture.red_circle.stimulusonset.88);
list.onsets.appenditem(picture.red_circle.stimulusonset.89);
list.onsets.appenditem(picture.red_circle.stimulusonset.90);
list.onsets.appenditem(picture.red_circle.stimulusonset.91);
list.onsets.appenditem(picture.red_circle.stimulusonset.92);
list.onsets.appenditem(picture.red_circle.stimulusonset.93);
list.onsets.appenditem(picture.red_circle.stimulusonset.94);
list.onsets.appenditem(picture.red_circle.stimulusonset.95);
list.onsets.appenditem(picture.red_circle.stimulusonset.96);
list.onsets.appenditem(picture.red_circle.stimulusonset.97);
list.onsets.appenditem(picture.red_circle.stimulusonset.98);
list.onsets.appenditem(picture.red_circle.stimulusonset.99);
list.onsets.appenditem(picture.red_circle.stimulusonset.100);
list.onsets.appenditem(picture.red_circle.stimulusonset.101);
list.onsets.appenditem(picture.red_circle.stimulusonset.102);
list.onsets.appenditem(picture.red_circle.stimulusonset.103);
list.onsets.appenditem(picture.red_circle.stimulusonset.104);
list.onsets.appenditem(picture.red_circle.stimulusonset.105);
list.onsets.appenditem(picture.red_circle.stimulusonset.106);
list.onsets.appenditem(picture.red_circle.stimulusonset.107);
list.onsets.appenditem(picture.red_circle.stimulusonset.108);
list.onsets.appenditem(picture.red_circle.stimulusonset.109);
list.onsets.appenditem(picture.red_circle.stimulusonset.110);
list.onsets.appenditem(picture.red_circle.stimulusonset.111);
list.onsets.appenditem(picture.red_circle.stimulusonset.112);
list.onsets.appenditem(picture.red_circle.stimulusonset.113);
list.onsets.appenditem(picture.red_circle.stimulusonset.114);
list.onsets.appenditem(picture.red_circle.stimulusonset.115);
list.onsets.appenditem(picture.red_circle.stimulusonset.116);
list.onsets.appenditem(picture.red_circle.stimulusonset.117);
list.onsets.appenditem(picture.red_circle.stimulusonset.118);
list.onsets.appenditem(picture.red_circle.stimulusonset.119);
list.onsets.appenditem(picture.red_circle.stimulusonset.120);
list.onsets.appenditem(picture.red_circle.stimulusonset.121);
list.onsets.appenditem(picture.red_circle.stimulusonset.122);
list.onsets.appenditem(picture.red_circle.stimulusonset.123);
list.onsets.appenditem(picture.red_circle.stimulusonset.124);
list.onsets.appenditem(picture.red_circle.stimulusonset.125);
list.onsets.appenditem(picture.red_circle.stimulusonset.126);
list.onsets.appenditem(picture.red_circle.stimulusonset.127);
list.onsets.appenditem(picture.red_circle.stimulusonset.128);
list.onsets.appenditem(picture.red_circle.stimulusonset.129);
list.onsets.appenditem(picture.red_circle.stimulusonset.130);
list.onsets.appenditem(picture.red_circle.stimulusonset.131);
list.onsets.appenditem(picture.red_circle.stimulusonset.132);
list.onsets.appenditem(picture.red_circle.stimulusonset.133);
list.onsets.appenditem(picture.red_circle.stimulusonset.134);
list.onsets.appenditem(picture.red_circle.stimulusonset.135);
list.onsets.appenditem(picture.red_circle.stimulusonset.136);
list.onsets.appenditem(picture.red_circle.stimulusonset.137);
list.onsets.appenditem(picture.red_circle.stimulusonset.138);
list.onsets.appenditem(picture.red_circle.stimulusonset.139);
list.onsets.appenditem(picture.red_circle.stimulusonset.140);
list.onsets.appenditem(picture.red_circle.stimulusonset.141);
list.onsets.appenditem(picture.red_circle.stimulusonset.142);
list.onsets.appenditem(picture.red_circle.stimulusonset.143);
list.onsets.appenditem(picture.red_circle.stimulusonset.144);
list.onsets.appenditem(picture.red_circle.stimulusonset.145);
list.onsets.appenditem(picture.red_circle.stimulusonset.146);
list.onsets.appenditem(picture.red_circle.stimulusonset.147);
list.onsets.appenditem(picture.red_circle.stimulusonset.148);
list.onsets.appenditem(picture.red_circle.stimulusonset.149);
list.onsets.appenditem(picture.red_circle.stimulusonset.150);
list.onsets.appenditem(picture.red_circle.stimulusonset.151);
list.onsets.appenditem(picture.red_circle.stimulusonset.152);
list.onsets.appenditem(picture.red_circle.stimulusonset.153);
list.onsets.appenditem(picture.red_circle.stimulusonset.154);
list.onsets.appenditem(picture.red_circle.stimulusonset.155);
list.onsets.appenditem(picture.red_circle.stimulusonset.156);
list.onsets.appenditem(picture.red_circle.stimulusonset.157);
list.onsets.appenditem(picture.red_circle.stimulusonset.158);
list.onsets.appenditem(picture.red_circle.stimulusonset.159);
list.onsets.appenditem(picture.red_circle.stimulusonset.160);
list.onsets.appenditem(picture.red_circle.stimulusonset.161);
list.onsets.appenditem(picture.red_circle.stimulusonset.162);
list.onsets.appenditem(picture.red_circle.stimulusonset.163);
list.onsets.appenditem(picture.red_circle.stimulusonset.164);
list.onsets.appenditem(picture.red_circle.stimulusonset.165);
list.onsets.appenditem(picture.red_circle.stimulusonset.166);
list.onsets.appenditem(picture.red_circle.stimulusonset.167);
list.onsets.appenditem(picture.red_circle.stimulusonset.168);
list.onsets.appenditem(picture.red_circle.stimulusonset.169);
list.onsets.appenditem(picture.red_circle.stimulusonset.170);
list.onsets.appenditem(picture.red_circle.stimulusonset.171);
list.onsets.appenditem(picture.red_circle.stimulusonset.172);
list.onsets.appenditem(picture.red_circle.stimulusonset.173);
list.onsets.appenditem(picture.red_circle.stimulusonset.174);
list.onsets.appenditem(picture.red_circle.stimulusonset.175);
list.onsets.appenditem(picture.red_circle.stimulusonset.176);
list.onsets.appenditem(picture.red_circle.stimulusonset.177);

list.frequency.appenditem(60/((picture.red_circle.stimulusonset.2-picture.red_circle.stimulusonset.1)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.3-picture.red_circle.stimulusonset.2)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.4-picture.red_circle.stimulusonset.3)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.5-picture.red_circle.stimulusonset.4)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.6-picture.red_circle.stimulusonset.5)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.7-picture.red_circle.stimulusonset.6)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.8-picture.red_circle.stimulusonset.7)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.9-picture.red_circle.stimulusonset.8)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.10-picture.red_circle.stimulusonset.9)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.11-picture.red_circle.stimulusonset.10)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.12-picture.red_circle.stimulusonset.11)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.13-picture.red_circle.stimulusonset.12)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.14-picture.red_circle.stimulusonset.13)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.15-picture.red_circle.stimulusonset.14)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.16-picture.red_circle.stimulusonset.15)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.17-picture.red_circle.stimulusonset.16)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.18-picture.red_circle.stimulusonset.17)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.19-picture.red_circle.stimulusonset.18)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.20-picture.red_circle.stimulusonset.19)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.21-picture.red_circle.stimulusonset.20)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.22-picture.red_circle.stimulusonset.21)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.23-picture.red_circle.stimulusonset.22)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.24-picture.red_circle.stimulusonset.23)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.25-picture.red_circle.stimulusonset.24)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.26-picture.red_circle.stimulusonset.25)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.27-picture.red_circle.stimulusonset.26)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.28-picture.red_circle.stimulusonset.27)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.29-picture.red_circle.stimulusonset.28)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.30-picture.red_circle.stimulusonset.29)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.31-picture.red_circle.stimulusonset.30)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.32-picture.red_circle.stimulusonset.31)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.33-picture.red_circle.stimulusonset.32)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.34-picture.red_circle.stimulusonset.33)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.35-picture.red_circle.stimulusonset.34)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.36-picture.red_circle.stimulusonset.35)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.37-picture.red_circle.stimulusonset.36)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.38-picture.red_circle.stimulusonset.37)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.39-picture.red_circle.stimulusonset.38)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.40-picture.red_circle.stimulusonset.39)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.41-picture.red_circle.stimulusonset.40)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.42-picture.red_circle.stimulusonset.41)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.43-picture.red_circle.stimulusonset.42)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.44-picture.red_circle.stimulusonset.43)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.45-picture.red_circle.stimulusonset.44)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.46-picture.red_circle.stimulusonset.45)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.47-picture.red_circle.stimulusonset.46)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.48-picture.red_circle.stimulusonset.47)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.49-picture.red_circle.stimulusonset.48)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.50-picture.red_circle.stimulusonset.49)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.51-picture.red_circle.stimulusonset.50)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.52-picture.red_circle.stimulusonset.51)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.53-picture.red_circle.stimulusonset.52)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.54-picture.red_circle.stimulusonset.53)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.55-picture.red_circle.stimulusonset.54)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.56-picture.red_circle.stimulusonset.55)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.57-picture.red_circle.stimulusonset.56)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.58-picture.red_circle.stimulusonset.57)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.59-picture.red_circle.stimulusonset.58)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.60-picture.red_circle.stimulusonset.59)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.61-picture.red_circle.stimulusonset.60)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.62-picture.red_circle.stimulusonset.61)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.63-picture.red_circle.stimulusonset.62)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.64-picture.red_circle.stimulusonset.63)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.65-picture.red_circle.stimulusonset.64)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.66-picture.red_circle.stimulusonset.65)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.67-picture.red_circle.stimulusonset.66)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.68-picture.red_circle.stimulusonset.67)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.69-picture.red_circle.stimulusonset.68)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.70-picture.red_circle.stimulusonset.69)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.71-picture.red_circle.stimulusonset.70)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.72-picture.red_circle.stimulusonset.71)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.73-picture.red_circle.stimulusonset.72)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.74-picture.red_circle.stimulusonset.73)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.75-picture.red_circle.stimulusonset.74)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.76-picture.red_circle.stimulusonset.75)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.77-picture.red_circle.stimulusonset.76)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.78-picture.red_circle.stimulusonset.77)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.79-picture.red_circle.stimulusonset.78)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.80-picture.red_circle.stimulusonset.79)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.81-picture.red_circle.stimulusonset.80)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.82-picture.red_circle.stimulusonset.81)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.83-picture.red_circle.stimulusonset.82)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.84-picture.red_circle.stimulusonset.83)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.85-picture.red_circle.stimulusonset.84)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.86-picture.red_circle.stimulusonset.85)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.87-picture.red_circle.stimulusonset.86)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.88-picture.red_circle.stimulusonset.87)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.89-picture.red_circle.stimulusonset.88)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.90-picture.red_circle.stimulusonset.89)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.91-picture.red_circle.stimulusonset.90)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.92-picture.red_circle.stimulusonset.91)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.93-picture.red_circle.stimulusonset.92)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.94-picture.red_circle.stimulusonset.93)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.95-picture.red_circle.stimulusonset.94)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.96-picture.red_circle.stimulusonset.95)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.97-picture.red_circle.stimulusonset.96)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.98-picture.red_circle.stimulusonset.97)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.99-picture.red_circle.stimulusonset.98)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.100-picture.red_circle.stimulusonset.99)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.101-picture.red_circle.stimulusonset.100)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.102-picture.red_circle.stimulusonset.101)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.103-picture.red_circle.stimulusonset.102)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.104-picture.red_circle.stimulusonset.103)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.105-picture.red_circle.stimulusonset.104)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.106-picture.red_circle.stimulusonset.105)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.107-picture.red_circle.stimulusonset.106)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.108-picture.red_circle.stimulusonset.107)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.109-picture.red_circle.stimulusonset.108)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.110-picture.red_circle.stimulusonset.109)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.111-picture.red_circle.stimulusonset.110)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.112-picture.red_circle.stimulusonset.111)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.113-picture.red_circle.stimulusonset.112)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.114-picture.red_circle.stimulusonset.113)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.115-picture.red_circle.stimulusonset.114)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.116-picture.red_circle.stimulusonset.115)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.117-picture.red_circle.stimulusonset.116)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.118-picture.red_circle.stimulusonset.117)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.119-picture.red_circle.stimulusonset.118)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.120-picture.red_circle.stimulusonset.119)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.121-picture.red_circle.stimulusonset.120)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.122-picture.red_circle.stimulusonset.121)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.123-picture.red_circle.stimulusonset.122)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.124-picture.red_circle.stimulusonset.123)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.125-picture.red_circle.stimulusonset.124)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.126-picture.red_circle.stimulusonset.125)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.127-picture.red_circle.stimulusonset.126)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.128-picture.red_circle.stimulusonset.127)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.129-picture.red_circle.stimulusonset.128)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.130-picture.red_circle.stimulusonset.129)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.131-picture.red_circle.stimulusonset.130)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.132-picture.red_circle.stimulusonset.131)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.133-picture.red_circle.stimulusonset.132)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.134-picture.red_circle.stimulusonset.133)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.135-picture.red_circle.stimulusonset.134)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.136-picture.red_circle.stimulusonset.135)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.137-picture.red_circle.stimulusonset.136)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.138-picture.red_circle.stimulusonset.137)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.139-picture.red_circle.stimulusonset.138)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.140-picture.red_circle.stimulusonset.139)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.141-picture.red_circle.stimulusonset.140)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.142-picture.red_circle.stimulusonset.141)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.143-picture.red_circle.stimulusonset.142)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.144-picture.red_circle.stimulusonset.143)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.145-picture.red_circle.stimulusonset.144)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.146-picture.red_circle.stimulusonset.145)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.147-picture.red_circle.stimulusonset.146)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.148-picture.red_circle.stimulusonset.147)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.149-picture.red_circle.stimulusonset.148)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.150-picture.red_circle.stimulusonset.149)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.151-picture.red_circle.stimulusonset.150)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.152-picture.red_circle.stimulusonset.151)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.153-picture.red_circle.stimulusonset.152)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.154-picture.red_circle.stimulusonset.153)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.155-picture.red_circle.stimulusonset.154)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.156-picture.red_circle.stimulusonset.155)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.157-picture.red_circle.stimulusonset.156)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.158-picture.red_circle.stimulusonset.157)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.159-picture.red_circle.stimulusonset.158)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.160-picture.red_circle.stimulusonset.159)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.161-picture.red_circle.stimulusonset.160)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.162-picture.red_circle.stimulusonset.161)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.163-picture.red_circle.stimulusonset.162)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.164-picture.red_circle.stimulusonset.163)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.165-picture.red_circle.stimulusonset.164)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.166-picture.red_circle.stimulusonset.165)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.167-picture.red_circle.stimulusonset.166)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.168-picture.red_circle.stimulusonset.167)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.169-picture.red_circle.stimulusonset.168)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.170-picture.red_circle.stimulusonset.169)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.171-picture.red_circle.stimulusonset.170)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.172-picture.red_circle.stimulusonset.171)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.173-picture.red_circle.stimulusonset.172)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.174-picture.red_circle.stimulusonset.173)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.175-picture.red_circle.stimulusonset.174)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.176-picture.red_circle.stimulusonset.175)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.177-picture.red_circle.stimulusonset.176)/1000));
list.frequency.appenditem((list.frequency.mean));

]
/ branch = [
trial.construct_bucket;
]
</trial>

<list latencies>
/ select = sequence
</list>

<list onsets>
/ select = sequence
</list>

<list acc>
</list>

<list frequency>
/select=sequence
</list>


<values>
/ current_onset = 0
/ current_min = 0
/ current_max = 0
/ current_latency = ""
/ bucketcount = 0
/ latencycount = 0
/ sum_acc_latencies = 0
/ sum_counted = 0
/ bucket_hit = 0
</values>


<trial construct_bucket>
/ ontrialbegin = [
values.bucketcount += 1;
values.bucket_hit = 0;
values.sum_counted = 0;
values.latencycount = 0;
values.current_onset = list.onsets.nextvalue;
values.current_frequency = list.frequency.nextvalue;
values.freq = concat(concat(values.freq, values.current_frequency),",");
if (values.current_frequency < 69.76) {values.current_min = values.current_onset - 125; values.current_max = values.current_onset + 750;};
else if (values.current_frequency > 69.76 && values.current_frequency < 94.25) {values.current_min = values.current_onset - 100; values.current_max = values.current_onset + 600;};
values.min = concat(concat(values.min,values.current_min),",");
values.max = concat(concat(values.max,values.current_max),",");]
/ stimulusframes = [1=clearscreen, debug]
/ branch = [
trial.check_latencies;
]
/ trialduration = 0
/ recorddata = false
</trial>

<trial check_latencies>
/ ontrialbegin = [
values.latencycount += 1;
values.current_latency = list.latencies.nextvalue;
if (values.current_latency >= values.current_min && values.current_latency <= values.current_max){values.sum_counted += 1; values.corrlat = concat(concat(values.corrlat, values.current_latency),",");};
 if(values.current_latency >= values.current_min && values.current_latency <= values.current_max && values.current_frequency < 69.76){values.sum_acc_69 += 1;};
  if(values.current_latency >= values.current_min && values.current_latency <= values.current_max && values.current_frequency > 69.76 && values.current_frequency < 94.25){values.sum_acc_betw += 1;};
if (values.sum_counted >=1) {values.bucket_hit = 1} else {
  values.bucket_hit = 0;
};
]
/ stimulusframes = [1=clearscreen, debug]
/ branch = [
if (values.latencycount < list.latencies.itemcount) {
 trial.check_latencies;
} else if (values.bucketcount < list.onsets.itemcount) {
 values.sum_acc_latencies += values.bucket_hit;
 trial.construct_bucket;
} else {
 values.sum_acc_latencies += values.bucket_hit;
 trial.score_result;
}
]
/ trialduration = 0
/ recorddata = false
</trial>

<trial score_result>
/ ontrialbegin = [
values.accuracy = 1-(abs(list.onsets.itemcount-values.sum_acc_latencies)/list.onsets.itemcount)]
/ stimulusframes = [1=clearscreen, debug]
/ validresponse = (57)
</trial>

<text debug>
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ items = ("Grazie per aver concluso l'esperimento!
Lascia che il computer concluda i calcoli e,
quando il livello di accuratezza (Final Accuracy) e' stato calcolato,
premi la barra spaziatrice per chiudere Inquisit.

Bucket <%values.bucketcount%> of <%list.onsets.itemcount%>
Latency <%values.latencycount%> of <%list.latencies.itemcount%>
Onset: <%values.current_onset%>| Min Latency: <%values.current_min%> | Max Latency: <%values.current_max%>
Current Latency: <%values.current_latency%>
Latencies in Bucket: <%values.sum_counted%>
Bucket Hit: <%values.bucket_hit%>
Accurate Latencies: <%values.sum_acc_latencies%> of <%list.latencies.itemcount%>
Final Accuracy: <%values.accuracy%>%")
/ erase = false
/ size = (60%, 40%)
</text>


<block prepre>
/ trials = [1=60hz; 2=instructions1; 3=instructions2]
</block>

<block pre>
/ trials = [1=fixate; 2=blank]
</block>

<block acc>
/ trials = [1=acc]
</block>

<expt >
/blocks=[
1=prepre;2=pre;3=acc;
]
</expt>

<data>
/ columns = [date,time,group,subject, display.refreshrate, values.min, values.corrlat, values.max, values.sum_counted, values.sum_acc_69, values.sum_acc_betw, values.freq, display.canvaswidth, display.canvasheight, trialduration, values.sum_acc_latencies, values.accuracy, values.timeofresponse,values.spacebarpresscount,
    
picture.black_circle.stimulusonset.1,    
picture.black_circle.stimulusonset.2,    
picture.black_circle.stimulusonset.3,    
picture.black_circle.stimulusonset.4,    
picture.black_circle.stimulusonset.5,    
picture.black_circle.stimulusonset.6,    
picture.black_circle.stimulusonset.7,    
picture.black_circle.stimulusonset.8,    
picture.black_circle.stimulusonset.9,    
picture.black_circle.stimulusonset.10,    
picture.black_circle.stimulusonset.11,    
picture.black_circle.stimulusonset.12,    
picture.black_circle.stimulusonset.13,    
picture.black_circle.stimulusonset.14,    
picture.black_circle.stimulusonset.15,    
picture.black_circle.stimulusonset.16,    
picture.black_circle.stimulusonset.17,    
picture.black_circle.stimulusonset.18,    
picture.black_circle.stimulusonset.19,    
picture.black_circle.stimulusonset.20,    
picture.black_circle.stimulusonset.21,    
picture.black_circle.stimulusonset.22,    
picture.black_circle.stimulusonset.23,    
picture.black_circle.stimulusonset.24,    
picture.black_circle.stimulusonset.25,    
picture.black_circle.stimulusonset.26,    
picture.black_circle.stimulusonset.27,    
picture.black_circle.stimulusonset.28,    
picture.black_circle.stimulusonset.29,    
picture.black_circle.stimulusonset.30,    
picture.black_circle.stimulusonset.31,    
picture.black_circle.stimulusonset.32,    
picture.black_circle.stimulusonset.33,    
picture.black_circle.stimulusonset.34,    
picture.black_circle.stimulusonset.35,    
picture.black_circle.stimulusonset.36,    
picture.black_circle.stimulusonset.37,    
picture.black_circle.stimulusonset.38,    
picture.black_circle.stimulusonset.39,    
picture.black_circle.stimulusonset.40,    
picture.black_circle.stimulusonset.41,    
picture.black_circle.stimulusonset.42,    
picture.black_circle.stimulusonset.43,    
picture.black_circle.stimulusonset.44,    
picture.black_circle.stimulusonset.45,    
picture.black_circle.stimulusonset.46,    
picture.black_circle.stimulusonset.47,    
picture.black_circle.stimulusonset.48,    
picture.black_circle.stimulusonset.49,    
picture.black_circle.stimulusonset.50,    
picture.black_circle.stimulusonset.51,    
picture.black_circle.stimulusonset.52,    
picture.black_circle.stimulusonset.53,    
picture.black_circle.stimulusonset.54,    
picture.black_circle.stimulusonset.55,    
picture.black_circle.stimulusonset.56,    
picture.black_circle.stimulusonset.57,    
picture.black_circle.stimulusonset.58,    
picture.black_circle.stimulusonset.59,    
picture.black_circle.stimulusonset.60,    
picture.black_circle.stimulusonset.61,    
picture.black_circle.stimulusonset.62,    
picture.black_circle.stimulusonset.63,    
picture.black_circle.stimulusonset.64,    
picture.black_circle.stimulusonset.65,    
picture.black_circle.stimulusonset.66,    
picture.black_circle.stimulusonset.67,    
picture.black_circle.stimulusonset.68,    
picture.black_circle.stimulusonset.69,    
picture.black_circle.stimulusonset.70,    
picture.black_circle.stimulusonset.71,    
picture.black_circle.stimulusonset.72,    
picture.black_circle.stimulusonset.73,    
picture.black_circle.stimulusonset.74,    
picture.black_circle.stimulusonset.75,    
picture.black_circle.stimulusonset.76,    
picture.black_circle.stimulusonset.77,    
picture.black_circle.stimulusonset.78,    
picture.black_circle.stimulusonset.79,    
picture.black_circle.stimulusonset.80,    
picture.black_circle.stimulusonset.81,    
picture.black_circle.stimulusonset.82,    
picture.black_circle.stimulusonset.83,    
picture.black_circle.stimulusonset.84,    
picture.black_circle.stimulusonset.85,    
picture.black_circle.stimulusonset.86,    
picture.black_circle.stimulusonset.87,    
picture.black_circle.stimulusonset.88,    
picture.black_circle.stimulusonset.89,    
picture.black_circle.stimulusonset.90,    
picture.black_circle.stimulusonset.91,    
picture.black_circle.stimulusonset.92,    
picture.black_circle.stimulusonset.93,    
picture.black_circle.stimulusonset.94,    
picture.black_circle.stimulusonset.95,    
picture.black_circle.stimulusonset.96,    
picture.black_circle.stimulusonset.97,    
picture.black_circle.stimulusonset.98,    
picture.black_circle.stimulusonset.99,    
picture.black_circle.stimulusonset.100,    
picture.black_circle.stimulusonset.101,    
picture.black_circle.stimulusonset.102,    
picture.black_circle.stimulusonset.103,    
picture.black_circle.stimulusonset.104,    
picture.black_circle.stimulusonset.105,    
picture.black_circle.stimulusonset.106,    
picture.black_circle.stimulusonset.107,    
picture.black_circle.stimulusonset.108,    
picture.black_circle.stimulusonset.109,    
picture.black_circle.stimulusonset.110,    
picture.black_circle.stimulusonset.111,    
picture.black_circle.stimulusonset.112,    
picture.black_circle.stimulusonset.113,    
picture.black_circle.stimulusonset.114,    
picture.black_circle.stimulusonset.115,    
picture.black_circle.stimulusonset.116,    
picture.black_circle.stimulusonset.117,    
picture.black_circle.stimulusonset.118,    
picture.black_circle.stimulusonset.119,    
picture.black_circle.stimulusonset.120,    
picture.black_circle.stimulusonset.121,    
picture.black_circle.stimulusonset.122,    
picture.black_circle.stimulusonset.123,    
picture.black_circle.stimulusonset.124,    
picture.black_circle.stimulusonset.125,    
picture.black_circle.stimulusonset.126,    
picture.black_circle.stimulusonset.127,    
picture.black_circle.stimulusonset.128,    
picture.black_circle.stimulusonset.129,    
picture.black_circle.stimulusonset.130,    
picture.black_circle.stimulusonset.131,    
picture.black_circle.stimulusonset.132,    
picture.black_circle.stimulusonset.133,    
picture.black_circle.stimulusonset.134,    
picture.black_circle.stimulusonset.135,    
picture.black_circle.stimulusonset.136,    
picture.black_circle.stimulusonset.137,    
picture.black_circle.stimulusonset.138,    
picture.black_circle.stimulusonset.139,    
picture.black_circle.stimulusonset.140,    
picture.black_circle.stimulusonset.141,    
picture.black_circle.stimulusonset.142,    
picture.black_circle.stimulusonset.143,    
picture.black_circle.stimulusonset.144,    
picture.black_circle.stimulusonset.145,    
picture.black_circle.stimulusonset.146,    
picture.black_circle.stimulusonset.147,    
picture.black_circle.stimulusonset.148,    
picture.black_circle.stimulusonset.149,    
picture.black_circle.stimulusonset.150,    
picture.black_circle.stimulusonset.151,    
picture.black_circle.stimulusonset.152,    
picture.black_circle.stimulusonset.153,    
picture.black_circle.stimulusonset.154,    
picture.black_circle.stimulusonset.155,    
picture.black_circle.stimulusonset.156,    
picture.black_circle.stimulusonset.157,    
picture.black_circle.stimulusonset.158,    
picture.black_circle.stimulusonset.159,    
picture.black_circle.stimulusonset.160,    
picture.black_circle.stimulusonset.161,    
picture.black_circle.stimulusonset.162,    
picture.black_circle.stimulusonset.163,    
picture.black_circle.stimulusonset.164,    
picture.black_circle.stimulusonset.165,    
picture.black_circle.stimulusonset.166,    
picture.black_circle.stimulusonset.167,    
picture.black_circle.stimulusonset.168,    
picture.black_circle.stimulusonset.169,    
picture.black_circle.stimulusonset.170,    
picture.black_circle.stimulusonset.171,    
picture.black_circle.stimulusonset.172,    
picture.black_circle.stimulusonset.173,    
picture.black_circle.stimulusonset.174,    
picture.black_circle.stimulusonset.175,    
picture.black_circle.stimulusonset.176,    
picture.black_circle.stimulusonset.177,    



picture.red_circle.stimulusonset.1,
picture.red_circle.stimulusonset.2,
picture.red_circle.stimulusonset.3,
picture.red_circle.stimulusonset.4,
picture.red_circle.stimulusonset.5,
picture.red_circle.stimulusonset.6,
picture.red_circle.stimulusonset.7,
picture.red_circle.stimulusonset.8,
picture.red_circle.stimulusonset.9,
picture.red_circle.stimulusonset.10,
picture.red_circle.stimulusonset.11,
picture.red_circle.stimulusonset.12,
picture.red_circle.stimulusonset.13,
picture.red_circle.stimulusonset.14,
picture.red_circle.stimulusonset.15,
picture.red_circle.stimulusonset.16,
picture.red_circle.stimulusonset.17,
picture.red_circle.stimulusonset.18,
picture.red_circle.stimulusonset.19,
picture.red_circle.stimulusonset.20,
picture.red_circle.stimulusonset.21,
picture.red_circle.stimulusonset.22,
picture.red_circle.stimulusonset.23,
picture.red_circle.stimulusonset.24,
picture.red_circle.stimulusonset.25,
picture.red_circle.stimulusonset.26,
picture.red_circle.stimulusonset.27,
picture.red_circle.stimulusonset.28,
picture.red_circle.stimulusonset.29,
picture.red_circle.stimulusonset.30,
picture.red_circle.stimulusonset.31,
picture.red_circle.stimulusonset.32,
picture.red_circle.stimulusonset.33,
picture.red_circle.stimulusonset.34,
picture.red_circle.stimulusonset.35,
picture.red_circle.stimulusonset.36,
picture.red_circle.stimulusonset.37,
picture.red_circle.stimulusonset.38,
picture.red_circle.stimulusonset.39,
picture.red_circle.stimulusonset.40,
picture.red_circle.stimulusonset.41,
picture.red_circle.stimulusonset.42,
picture.red_circle.stimulusonset.43,
picture.red_circle.stimulusonset.44,
picture.red_circle.stimulusonset.45,
picture.red_circle.stimulusonset.46,
picture.red_circle.stimulusonset.47,
picture.red_circle.stimulusonset.48,
picture.red_circle.stimulusonset.49,
picture.red_circle.stimulusonset.50,
picture.red_circle.stimulusonset.51,
picture.red_circle.stimulusonset.52,
picture.red_circle.stimulusonset.53,
picture.red_circle.stimulusonset.54,
picture.red_circle.stimulusonset.55,
picture.red_circle.stimulusonset.56,
picture.red_circle.stimulusonset.57,
picture.red_circle.stimulusonset.58,
picture.red_circle.stimulusonset.59,
picture.red_circle.stimulusonset.60,
picture.red_circle.stimulusonset.61,
picture.red_circle.stimulusonset.62,
picture.red_circle.stimulusonset.63,
picture.red_circle.stimulusonset.64,
picture.red_circle.stimulusonset.65,
picture.red_circle.stimulusonset.66,
picture.red_circle.stimulusonset.67,
picture.red_circle.stimulusonset.68,
picture.red_circle.stimulusonset.69,
picture.red_circle.stimulusonset.70,
picture.red_circle.stimulusonset.71,
picture.red_circle.stimulusonset.72,
picture.red_circle.stimulusonset.73,
picture.red_circle.stimulusonset.74,
picture.red_circle.stimulusonset.75,
picture.red_circle.stimulusonset.76,
picture.red_circle.stimulusonset.77,
picture.red_circle.stimulusonset.78,
picture.red_circle.stimulusonset.79,
picture.red_circle.stimulusonset.80,
picture.red_circle.stimulusonset.81,
picture.red_circle.stimulusonset.82,
picture.red_circle.stimulusonset.83,
picture.red_circle.stimulusonset.84,
picture.red_circle.stimulusonset.85,
picture.red_circle.stimulusonset.86,
picture.red_circle.stimulusonset.87,
picture.red_circle.stimulusonset.88,
picture.red_circle.stimulusonset.89,
picture.red_circle.stimulusonset.90,
picture.red_circle.stimulusonset.91,
picture.red_circle.stimulusonset.92,
picture.red_circle.stimulusonset.93,
picture.red_circle.stimulusonset.94,
picture.red_circle.stimulusonset.95,
picture.red_circle.stimulusonset.96,
picture.red_circle.stimulusonset.97,
picture.red_circle.stimulusonset.98,
picture.red_circle.stimulusonset.99,
picture.red_circle.stimulusonset.100,
picture.red_circle.stimulusonset.101,
picture.red_circle.stimulusonset.102,
picture.red_circle.stimulusonset.103,
picture.red_circle.stimulusonset.104,
picture.red_circle.stimulusonset.105,
picture.red_circle.stimulusonset.106,
picture.red_circle.stimulusonset.107,
picture.red_circle.stimulusonset.108,
picture.red_circle.stimulusonset.109,
picture.red_circle.stimulusonset.110,
picture.red_circle.stimulusonset.111,
picture.red_circle.stimulusonset.112,
picture.red_circle.stimulusonset.113,
picture.red_circle.stimulusonset.114,
picture.red_circle.stimulusonset.115,
picture.red_circle.stimulusonset.116,
picture.red_circle.stimulusonset.117,
picture.red_circle.stimulusonset.118,
picture.red_circle.stimulusonset.119,
picture.red_circle.stimulusonset.120,
picture.red_circle.stimulusonset.121,
picture.red_circle.stimulusonset.122,
picture.red_circle.stimulusonset.123,
picture.red_circle.stimulusonset.124,
picture.red_circle.stimulusonset.125,
picture.red_circle.stimulusonset.126,
picture.red_circle.stimulusonset.127,
picture.red_circle.stimulusonset.128,
picture.red_circle.stimulusonset.129,
picture.red_circle.stimulusonset.130,
picture.red_circle.stimulusonset.131,
picture.red_circle.stimulusonset.132,
picture.red_circle.stimulusonset.133,
picture.red_circle.stimulusonset.134,
picture.red_circle.stimulusonset.135,
picture.red_circle.stimulusonset.136,
picture.red_circle.stimulusonset.137,
picture.red_circle.stimulusonset.138,
picture.red_circle.stimulusonset.139,
picture.red_circle.stimulusonset.140,
picture.red_circle.stimulusonset.141,
picture.red_circle.stimulusonset.142,
picture.red_circle.stimulusonset.143,
picture.red_circle.stimulusonset.144,
picture.red_circle.stimulusonset.145,
picture.red_circle.stimulusonset.146,
picture.red_circle.stimulusonset.147,
picture.red_circle.stimulusonset.148,
picture.red_circle.stimulusonset.149,
picture.red_circle.stimulusonset.150,
picture.red_circle.stimulusonset.151,
picture.red_circle.stimulusonset.152,
picture.red_circle.stimulusonset.153,
picture.red_circle.stimulusonset.154,
picture.red_circle.stimulusonset.155,
picture.red_circle.stimulusonset.156,
picture.red_circle.stimulusonset.157,
picture.red_circle.stimulusonset.158,
picture.red_circle.stimulusonset.159,
picture.red_circle.stimulusonset.160,
picture.red_circle.stimulusonset.161,
picture.red_circle.stimulusonset.162,
picture.red_circle.stimulusonset.163,
picture.red_circle.stimulusonset.164,
picture.red_circle.stimulusonset.165,
picture.red_circle.stimulusonset.166,
picture.red_circle.stimulusonset.167,
picture.red_circle.stimulusonset.168,
picture.red_circle.stimulusonset.169,
picture.red_circle.stimulusonset.170,
picture.red_circle.stimulusonset.171,
picture.red_circle.stimulusonset.172,
picture.red_circle.stimulusonset.173,
picture.red_circle.stimulusonset.174,
picture.red_circle.stimulusonset.175,
picture.red_circle.stimulusonset.176,
picture.red_circle.stimulusonset.177,
]
</data>

<defaults>
/ screencolor = (195,195,195)
/ txbgcolor = (195,195,195)
/ txcolor = white
</defaults>

Dave
Dave
Supreme Being (923K reputation)Supreme Being (923K reputation)Supreme Being (923K reputation)Supreme Being (923K reputation)Supreme Being (923K reputation)Supreme Being (923K reputation)Supreme Being (923K reputation)Supreme Being (923K reputation)Supreme Being (923K reputation)
Group: Administrators
Posts: 11K, Visits: 68K
eleonora_parr - 3/25/2021
Dear Inquisiters, 
I am trying to program a sort of psychophisics in inquisit: participants have to synchronize their responses with the appearance of a circle on the screen. Their accuracy is calculated according to how many of their responses fell in an range of time that was very close to the appearance of this circle. This range is calculated according to the frequency at which this circle is showed, which is variable over time, and then, calculated based on the distance between one appearance and the subsequent one (i.e.  list.frequency.appenditem(60/((picture.red_circle.stimulusonset.2-picture.red_circle.stimulusonset.1)/1000));
So, if the calculated frequency is lower than 69.76, then the range of an accurate response is between -125 and +750 ms compared to the appearance of the circle
if it is between 69.76 and 94.25,  then the range of an accurate response is between -100 and +600 ms compared to the appearance of the circle

The code works until a certain point, specifically the calculation of the range based on the 21th calculated frequency : even if that frequency is lower than 69.76, the range is calculated as if the frequency was  between 69.76 and 94.25. I also could compared that as I saved all these variables (index_min, index_max, all the onsets and calculated frequency)... 
Does somebody knows what's going on??
You can just replace the images with two random pics, it doesn't really matters what it is shown.. 

Here is the code, thank you so much

Eleonora


<picture red_circle>
/ items = ("255.png")
/ position = (50%,50%)
/size=(30%, 30%)
</picture>


<picture black_circle>
/ items = ("195.png")
/ position = (50%,50%)
/size=(30%, 30%)
</picture>

<shape blank>
/ color = (195,195,195)
/ position = (50%,50%)
/ shape = rectangle
/size=(30%, 30%)
</shape>

<shape backgroundcolor>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
</shape>

<picture checker>
/items=("scacchieracc1.png")
/ position = (50%, 50%)
/ size = (30%, 30%)
</picture>


<trial blank>
/stimulusframes=[1=blank]
/ trialduration = 3000
</trial>

<text cross>
/items=("+")
/position = (50%, 50%)
</text>

<trial fixate>
/ stimulusframes = [1=cross]
/ trialduration = 2000
</trial>

<values>
/current_frequency = ""
/timeofresponse=""
/spacebarpresscount =""
/accuracy = ""
/sum_acc_betw =""
/sum_acc_69 = ""
/freq = ""
/min = ""
/max= ""
/corrlat=""
</values>

<text 60hz>
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ position = (50%, 50%)
/ txbgcolor = transparent
/ erase = false
/ txcolor = white

/ items = ("
    Benvenuto in questo esperimento e grazie per la tua partecipazione.
    Si tratta di un compito di due minuti e mezzo, ma e' molto importante
    che tu faccia del tuo meglio nell'esecuzione del compito.
    Assicurati che il tuo schermo sia impostato su un refresh rate di 60 Hz:
    per controllarlo esci dall'esperimento premendo CTRL+Q,
    poi vai nelle impostazioni del computer > Sistema > Schermo >
    Impostazioni Schermo Avanzate > Frequenza di Aggiornamento.
    Nel menu frequenza di aggiornamento controllare che il refresh rate sia impostato a 60 Hz.
    Se non lo e', fare click su Proprieta', nella sezione Monitor, e impostare nella tendina 60 Hz e quindi fare clic su OK.
    Quando hai impostato lo schermo a 60 Hz e sei pronto per iniziare l'esperimento, riapri il file dell'esperimento e premi
    'continua' in basso a destra per leggere le istruzioni. ")
</text>

<text continue>
/ items = ("Continua")
/ size = (9%, 5%)
/ position = (75%, 90%)
/ fontstyle = ("Trebuchet MS", 4%, false, false, false, false, 5, 1)
/ txbgcolor = white
/ txcolor = black
</text>


<trial 60hz>
/ ontrialbegin = [
  shape.backgroundcolor.color = black;]

/ stimulusframes = [1=clearscreen,backgroundcolor,60hz, continue]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (continue)
</trial>

<text instructions>
/ txbgcolor = transparent
/ erase = false
/ txcolor = white
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ position = (50%, 50%)
/ items = ("
Ora che il tuo monitor e' impostato al refresh rate di 60 Hz, leggi le istruzioni per procedere all'esperimento:
Appena l'esperimento comincera', vedrai una croce di fissazione apparire al centro dello schermo.
Dopo pochi secondi la croce scomparira', e poco dopo vedrai una scacchiera nera apparire al centro dello schermo.
Sotto alla scacchiera, vedrai ogni tanto apparire un cerchio bianco,
che scomparira' molto rapidamente. Il cerchio comparira' e scomparira' in maniera continuativa durante tutto
l'esperimento.
Il tuo compito sara' quello di premere la barra spaziatrice ogni volta che il cerchio bianco comparira',
sincronizzando la pressione della barra spaziatrice con ogni apparizione del cerchio bianco.
Cerca di essere il piu' accurato possibile e di premere la barra spaziatrice ogni
volta che il cerchio compare.
Premi 'continua' per continuare a leggere le istruzioni. ")
</text>


<text instructions2>
/ txbgcolor = transparent
/ erase = false
/ txcolor = white
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ position = (50%, 50%)
/ items = ("
    Alla fine dell'esperimento vedrai comparire una schermata grigia dove delle scritte indicano
    che il computer sta calcolando il livello di accuratezza.
    Quando questa schermata compare non fare nulla. Aspetta che il computer finisca il calcolo, ci vorranno un po' di minuti.
    Il calcolo finira' quando il livello di accuratezza in percentuale comparira' nell'ultima riga.
    Non devi preoccuparti del numero che otterrai, questo calcolo serve a noi per condurre delle statistiche ed esplorare la
    percezione visiva.
    Solo quando il PC ha finito il calcolo e l'accuratezza % e' stata calcolata, premi la barra spaziatrice per concludere.
    Appena sei pronto ad iniziare, premi continua qui sotto e posiziona subito la mano sulla barra spaziatrice
    per essere pronto a premerla sincronizzandoti con ogni volta che il cerchio bianco compare.")
</text>

<trial instructions1>
/ ontrialbegin = [
  shape.backgroundcolor.color = black;]

/ stimulusframes = [1=clearscreen,backgroundcolor,instructions, continue]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (continue)
</trial>

<trial instructions2>
/ ontrialbegin = [
  shape.backgroundcolor.color = black;]

/ stimulusframes = [1=clearscreen,backgroundcolor,instructions2, continue]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (continue)
</trial>

<trial acc>
/ ontrialbegin = [
values.spacebarpresscount = "";
values.timeofresponse = "";
values.accuracy = "";
values.current_onset = "";
values.current_max = "";
values.current_min = "";
values.current_latency = "";
values.sum_acc_latencies = 0;
values.bucketcount = 0;
values.latencycount = 0;
values.sum_counted = 0;
values.bucket_hit = 0;

list.acc.reset();
list.latencies.reset();
list.onsets.reset();
]
/pretrialpause = 1000
/stimulustimes=[
0=checker;
1000=red_circle;
1755=red_circle;
2494=red_circle;
3203=red_circle;
3964=red_circle;
4719=red_circle;
5486=red_circle;
6279=red_circle;
7063=red_circle;
7849=red_circle;
8637=red_circle;
9389=red_circle;
10167=red_circle;
10951=red_circle;
11712=red_circle;
12519=red_circle;
13360=red_circle;
14175=red_circle;
15038=red_circle;
15911=red_circle;
16778=red_circle;
17668=red_circle;
18552=red_circle;
19426=red_circle;
20307=red_circle;
21183=red_circle;
22038=red_circle;
22907=red_circle;
23770=red_circle;
24632=red_circle;
25525=red_circle;
26387=red_circle;
27266=red_circle;
28150=red_circle;
28979=red_circle;
29833=red_circle;
30671=red_circle;
31470=red_circle;
32296=red_circle;
33132=red_circle;
33951=red_circle;
34826=red_circle;
35658=red_circle;
36507=red_circle;
37375=red_circle;
38217=red_circle;
39070=red_circle;
39937=red_circle;
40760=red_circle;
41597=red_circle;
42432=red_circle;
43237=red_circle;
44052=red_circle;
44835=red_circle;
45625=red_circle;
46443=red_circle;
47251=red_circle;
48098=red_circle;
48972=red_circle;
49829=red_circle;
50680=red_circle;
51561=red_circle;
52408=red_circle;
53257=red_circle;
54101=red_circle;
54943=red_circle;
55757=red_circle;
56651=red_circle;
57572=red_circle;
58456=red_circle;
59364=red_circle;
60278=red_circle;
61142=red_circle;
62023=red_circle;
62889=red_circle;
63719=red_circle;
64588=red_circle;
65463=red_circle;
66277=red_circle;
67123=red_circle;
67973=red_circle;
68810=red_circle;
69650=red_circle;
70523=red_circle;
71386=red_circle;
72246=red_circle;
73150=red_circle;
74049=red_circle;
74912=red_circle;
75802=red_circle;
76699=red_circle;
77558=red_circle;
78444=red_circle;
79343=red_circle;
80190=red_circle;
81073=red_circle;
81964=red_circle;
82822=red_circle;
83729=red_circle;
84636=red_circle;
85511=red_circle;
86391=red_circle;
87287=red_circle;
88139=red_circle;
88962=red_circle;
89779=red_circle;
90585=red_circle;
91390=red_circle;
92235=red_circle;
93107=red_circle;
93924=red_circle;
94800=red_circle;
95685=red_circle;
96508=red_circle;
97367=red_circle;
98200=red_circle;
99034=red_circle;
99891=red_circle;
100744=red_circle;
101575=red_circle;
102429=red_circle;
103274=red_circle;
104087=red_circle;
104947=red_circle;
105852=red_circle;
106730=red_circle;
107626=red_circle;
108519=red_circle;
109353=red_circle;
110195=red_circle;
111044=red_circle;
111857=red_circle;
112660=red_circle;
113493=red_circle;
114340=red_circle;
115151=red_circle;
115994=red_circle;
116867=red_circle;
117726=red_circle;
118567=red_circle;
119449=red_circle;
120319=red_circle;
121148=red_circle;
122005=red_circle;
122849=red_circle;
123673=red_circle;
124482=red_circle;
125319=red_circle;
126153=red_circle;
126983=red_circle;
127852=red_circle;
128723=red_circle;
129598=red_circle;
130502=red_circle;
131375=red_circle;
132222=red_circle;
133075=red_circle;
133925=red_circle;
134732=red_circle;
135558=red_circle;
136399=red_circle;
137225=red_circle;
138043=red_circle;
138902=red_circle;
139764=red_circle;
140597=red_circle;
141489=red_circle;
142377=red_circle;
143212=red_circle;
144076=red_circle;
144938=red_circle;
145774=red_circle;
146614=red_circle;
147472=red_circle;
148297=red_circle;
149174=red_circle;
150095=red_circle;

1045=black_circle;
1800=black_circle;
2539=black_circle;
3248=black_circle;
4009=black_circle;
4764=black_circle;
5531=black_circle;
6324=black_circle;
7108=black_circle;
7894=black_circle;
8682=black_circle;
9434=black_circle;
10212=black_circle;
10996=black_circle;
11757=black_circle;
12564=black_circle;
13405=black_circle;
14220=black_circle;
15083=black_circle;
15956=black_circle;
16823=black_circle;
17713=black_circle;
18597=black_circle;
19471=black_circle;
20352=black_circle;
21228=black_circle;
22083=black_circle;
22952=black_circle;
23815=black_circle;
24677=black_circle;
25570=black_circle;
26432=black_circle;
27311=black_circle;
28195=black_circle;
29024=black_circle;
29878=black_circle;
30716=black_circle;
31515=black_circle;
32341=black_circle;
33177=black_circle;
33996=black_circle;
34871=black_circle;
35703=black_circle;
36552=black_circle;
37420=black_circle;
38262=black_circle;
39115=black_circle;
39982=black_circle;
40805=black_circle;
41642=black_circle;
42477=black_circle;
43282=black_circle;
44097=black_circle;
44880=black_circle;
45670=black_circle;
46488=black_circle;
47296=black_circle;
48143=black_circle;
49017=black_circle;
49874=black_circle;
50725=black_circle;
51606=black_circle;
52453=black_circle;
53302=black_circle;
54146=black_circle;
54988=black_circle;
55802=black_circle;
56696=black_circle;
57617=black_circle;
58501=black_circle;
59409=black_circle;
60323=black_circle;
61187=black_circle;
62068=black_circle;
62934=black_circle;
63764=black_circle;
64633=black_circle;
65508=black_circle;
66322=black_circle;
67168=black_circle;
68018=black_circle;
68855=black_circle;
69695=black_circle;
70568=black_circle;
71431=black_circle;
72291=black_circle;
73195=black_circle;
74094=black_circle;
74957=black_circle;
75847=black_circle;
76744=black_circle;
77603=black_circle;
78489=black_circle;
79388=black_circle;
80235=black_circle;
81118=black_circle;
82009=black_circle;
82867=black_circle;
83774=black_circle;
84681=black_circle;
85556=black_circle;
86436=black_circle;
87332=black_circle;
88184=black_circle;
89007=black_circle;
89824=black_circle;
90630=black_circle;
91435=black_circle;
92280=black_circle;
93152=black_circle;
93969=black_circle;
94845=black_circle;
95730=black_circle;
96553=black_circle;
97412=black_circle;
98245=black_circle;
99079=black_circle;
99936=black_circle;
100789=black_circle;
101620=black_circle;
102474=black_circle;
103319=black_circle;
104132=black_circle;
104992=black_circle;
105897=black_circle;
106775=black_circle;
107671=black_circle;
108564=black_circle;
109398=black_circle;
110240=black_circle;
111089=black_circle;
111902=black_circle;
112705=black_circle;
113538=black_circle;
114385=black_circle;
115196=black_circle;
116039=black_circle;
116912=black_circle;
117771=black_circle;
118612=black_circle;
119494=black_circle;
120364=black_circle;
121193=black_circle;
122050=black_circle;
122894=black_circle;
123718=black_circle;
124527=black_circle;
125364=black_circle;
126198=black_circle;
127028=black_circle;
127897=black_circle;
128768=black_circle;
129643=black_circle;
130547=black_circle;
131420=black_circle;
132267=black_circle;
133120=black_circle;
133970=black_circle;
134777=black_circle;
135603=black_circle;
136444=black_circle;
137270=black_circle;
138088=black_circle;
138947=black_circle;
139809=black_circle;
140642=black_circle;
141534=black_circle;
142422=black_circle;
143257=black_circle;
144121=black_circle;
144983=black_circle;
145819=black_circle;
146659=black_circle;
147517=black_circle;
148342=black_circle;
149219=black_circle;
150140=black_circle;


]
/ trialduration = 150140+1000
/ inputdevice = keyboard
/ beginresponsetime = -1
/ responseinterrupt = trial
/ validresponse = (-57, 0)
/ correctresponse = (0)
/ showmousecursor = false
/ isvalidresponse = [if(trial.acc.response==57){
values.spacebarpresscount += 1;
values.timeofresponse=concat(concat(values.timeofresponse, trial.acc.latency),",");
list.latencies.appenditem(trial.acc.latency);
false}
;
]
/ ontrialend = [
list.onsets.appenditem(picture.red_circle.stimulusonset.1);
list.onsets.appenditem(picture.red_circle.stimulusonset.2);
list.onsets.appenditem(picture.red_circle.stimulusonset.3);
list.onsets.appenditem(picture.red_circle.stimulusonset.4);
list.onsets.appenditem(picture.red_circle.stimulusonset.5);
list.onsets.appenditem(picture.red_circle.stimulusonset.6);
list.onsets.appenditem(picture.red_circle.stimulusonset.7);
list.onsets.appenditem(picture.red_circle.stimulusonset.8);
list.onsets.appenditem(picture.red_circle.stimulusonset.9);
list.onsets.appenditem(picture.red_circle.stimulusonset.10);
list.onsets.appenditem(picture.red_circle.stimulusonset.11);
list.onsets.appenditem(picture.red_circle.stimulusonset.12);
list.onsets.appenditem(picture.red_circle.stimulusonset.13);
list.onsets.appenditem(picture.red_circle.stimulusonset.14);
list.onsets.appenditem(picture.red_circle.stimulusonset.15);
list.onsets.appenditem(picture.red_circle.stimulusonset.16);
list.onsets.appenditem(picture.red_circle.stimulusonset.17);
list.onsets.appenditem(picture.red_circle.stimulusonset.18);
list.onsets.appenditem(picture.red_circle.stimulusonset.19);
list.onsets.appenditem(picture.red_circle.stimulusonset.20);
list.onsets.appenditem(picture.red_circle.stimulusonset.21);
list.onsets.appenditem(picture.red_circle.stimulusonset.22);
list.onsets.appenditem(picture.red_circle.stimulusonset.23);
list.onsets.appenditem(picture.red_circle.stimulusonset.24);
list.onsets.appenditem(picture.red_circle.stimulusonset.25);
list.onsets.appenditem(picture.red_circle.stimulusonset.26);
list.onsets.appenditem(picture.red_circle.stimulusonset.27);
list.onsets.appenditem(picture.red_circle.stimulusonset.28);
list.onsets.appenditem(picture.red_circle.stimulusonset.29);
list.onsets.appenditem(picture.red_circle.stimulusonset.30);
list.onsets.appenditem(picture.red_circle.stimulusonset.31);
list.onsets.appenditem(picture.red_circle.stimulusonset.32);
list.onsets.appenditem(picture.red_circle.stimulusonset.33);
list.onsets.appenditem(picture.red_circle.stimulusonset.34);
list.onsets.appenditem(picture.red_circle.stimulusonset.35);
list.onsets.appenditem(picture.red_circle.stimulusonset.36);
list.onsets.appenditem(picture.red_circle.stimulusonset.37);
list.onsets.appenditem(picture.red_circle.stimulusonset.38);
list.onsets.appenditem(picture.red_circle.stimulusonset.39);
list.onsets.appenditem(picture.red_circle.stimulusonset.40);
list.onsets.appenditem(picture.red_circle.stimulusonset.41);
list.onsets.appenditem(picture.red_circle.stimulusonset.42);
list.onsets.appenditem(picture.red_circle.stimulusonset.43);
list.onsets.appenditem(picture.red_circle.stimulusonset.44);
list.onsets.appenditem(picture.red_circle.stimulusonset.45);
list.onsets.appenditem(picture.red_circle.stimulusonset.46);
list.onsets.appenditem(picture.red_circle.stimulusonset.47);
list.onsets.appenditem(picture.red_circle.stimulusonset.48);
list.onsets.appenditem(picture.red_circle.stimulusonset.49);
list.onsets.appenditem(picture.red_circle.stimulusonset.50);
list.onsets.appenditem(picture.red_circle.stimulusonset.51);
list.onsets.appenditem(picture.red_circle.stimulusonset.52);
list.onsets.appenditem(picture.red_circle.stimulusonset.53);
list.onsets.appenditem(picture.red_circle.stimulusonset.54);
list.onsets.appenditem(picture.red_circle.stimulusonset.55);
list.onsets.appenditem(picture.red_circle.stimulusonset.56);
list.onsets.appenditem(picture.red_circle.stimulusonset.57);
list.onsets.appenditem(picture.red_circle.stimulusonset.58);
list.onsets.appenditem(picture.red_circle.stimulusonset.59);
list.onsets.appenditem(picture.red_circle.stimulusonset.60);
list.onsets.appenditem(picture.red_circle.stimulusonset.61);
list.onsets.appenditem(picture.red_circle.stimulusonset.62);
list.onsets.appenditem(picture.red_circle.stimulusonset.63);
list.onsets.appenditem(picture.red_circle.stimulusonset.64);
list.onsets.appenditem(picture.red_circle.stimulusonset.65);
list.onsets.appenditem(picture.red_circle.stimulusonset.66);
list.onsets.appenditem(picture.red_circle.stimulusonset.67);
list.onsets.appenditem(picture.red_circle.stimulusonset.68);
list.onsets.appenditem(picture.red_circle.stimulusonset.69);
list.onsets.appenditem(picture.red_circle.stimulusonset.70);
list.onsets.appenditem(picture.red_circle.stimulusonset.71);
list.onsets.appenditem(picture.red_circle.stimulusonset.72);
list.onsets.appenditem(picture.red_circle.stimulusonset.73);
list.onsets.appenditem(picture.red_circle.stimulusonset.74);
list.onsets.appenditem(picture.red_circle.stimulusonset.75);
list.onsets.appenditem(picture.red_circle.stimulusonset.76);
list.onsets.appenditem(picture.red_circle.stimulusonset.77);
list.onsets.appenditem(picture.red_circle.stimulusonset.78);
list.onsets.appenditem(picture.red_circle.stimulusonset.79);
list.onsets.appenditem(picture.red_circle.stimulusonset.80);
list.onsets.appenditem(picture.red_circle.stimulusonset.81);
list.onsets.appenditem(picture.red_circle.stimulusonset.82);
list.onsets.appenditem(picture.red_circle.stimulusonset.83);
list.onsets.appenditem(picture.red_circle.stimulusonset.84);
list.onsets.appenditem(picture.red_circle.stimulusonset.85);
list.onsets.appenditem(picture.red_circle.stimulusonset.86);
list.onsets.appenditem(picture.red_circle.stimulusonset.87);
list.onsets.appenditem(picture.red_circle.stimulusonset.88);
list.onsets.appenditem(picture.red_circle.stimulusonset.89);
list.onsets.appenditem(picture.red_circle.stimulusonset.90);
list.onsets.appenditem(picture.red_circle.stimulusonset.91);
list.onsets.appenditem(picture.red_circle.stimulusonset.92);
list.onsets.appenditem(picture.red_circle.stimulusonset.93);
list.onsets.appenditem(picture.red_circle.stimulusonset.94);
list.onsets.appenditem(picture.red_circle.stimulusonset.95);
list.onsets.appenditem(picture.red_circle.stimulusonset.96);
list.onsets.appenditem(picture.red_circle.stimulusonset.97);
list.onsets.appenditem(picture.red_circle.stimulusonset.98);
list.onsets.appenditem(picture.red_circle.stimulusonset.99);
list.onsets.appenditem(picture.red_circle.stimulusonset.100);
list.onsets.appenditem(picture.red_circle.stimulusonset.101);
list.onsets.appenditem(picture.red_circle.stimulusonset.102);
list.onsets.appenditem(picture.red_circle.stimulusonset.103);
list.onsets.appenditem(picture.red_circle.stimulusonset.104);
list.onsets.appenditem(picture.red_circle.stimulusonset.105);
list.onsets.appenditem(picture.red_circle.stimulusonset.106);
list.onsets.appenditem(picture.red_circle.stimulusonset.107);
list.onsets.appenditem(picture.red_circle.stimulusonset.108);
list.onsets.appenditem(picture.red_circle.stimulusonset.109);
list.onsets.appenditem(picture.red_circle.stimulusonset.110);
list.onsets.appenditem(picture.red_circle.stimulusonset.111);
list.onsets.appenditem(picture.red_circle.stimulusonset.112);
list.onsets.appenditem(picture.red_circle.stimulusonset.113);
list.onsets.appenditem(picture.red_circle.stimulusonset.114);
list.onsets.appenditem(picture.red_circle.stimulusonset.115);
list.onsets.appenditem(picture.red_circle.stimulusonset.116);
list.onsets.appenditem(picture.red_circle.stimulusonset.117);
list.onsets.appenditem(picture.red_circle.stimulusonset.118);
list.onsets.appenditem(picture.red_circle.stimulusonset.119);
list.onsets.appenditem(picture.red_circle.stimulusonset.120);
list.onsets.appenditem(picture.red_circle.stimulusonset.121);
list.onsets.appenditem(picture.red_circle.stimulusonset.122);
list.onsets.appenditem(picture.red_circle.stimulusonset.123);
list.onsets.appenditem(picture.red_circle.stimulusonset.124);
list.onsets.appenditem(picture.red_circle.stimulusonset.125);
list.onsets.appenditem(picture.red_circle.stimulusonset.126);
list.onsets.appenditem(picture.red_circle.stimulusonset.127);
list.onsets.appenditem(picture.red_circle.stimulusonset.128);
list.onsets.appenditem(picture.red_circle.stimulusonset.129);
list.onsets.appenditem(picture.red_circle.stimulusonset.130);
list.onsets.appenditem(picture.red_circle.stimulusonset.131);
list.onsets.appenditem(picture.red_circle.stimulusonset.132);
list.onsets.appenditem(picture.red_circle.stimulusonset.133);
list.onsets.appenditem(picture.red_circle.stimulusonset.134);
list.onsets.appenditem(picture.red_circle.stimulusonset.135);
list.onsets.appenditem(picture.red_circle.stimulusonset.136);
list.onsets.appenditem(picture.red_circle.stimulusonset.137);
list.onsets.appenditem(picture.red_circle.stimulusonset.138);
list.onsets.appenditem(picture.red_circle.stimulusonset.139);
list.onsets.appenditem(picture.red_circle.stimulusonset.140);
list.onsets.appenditem(picture.red_circle.stimulusonset.141);
list.onsets.appenditem(picture.red_circle.stimulusonset.142);
list.onsets.appenditem(picture.red_circle.stimulusonset.143);
list.onsets.appenditem(picture.red_circle.stimulusonset.144);
list.onsets.appenditem(picture.red_circle.stimulusonset.145);
list.onsets.appenditem(picture.red_circle.stimulusonset.146);
list.onsets.appenditem(picture.red_circle.stimulusonset.147);
list.onsets.appenditem(picture.red_circle.stimulusonset.148);
list.onsets.appenditem(picture.red_circle.stimulusonset.149);
list.onsets.appenditem(picture.red_circle.stimulusonset.150);
list.onsets.appenditem(picture.red_circle.stimulusonset.151);
list.onsets.appenditem(picture.red_circle.stimulusonset.152);
list.onsets.appenditem(picture.red_circle.stimulusonset.153);
list.onsets.appenditem(picture.red_circle.stimulusonset.154);
list.onsets.appenditem(picture.red_circle.stimulusonset.155);
list.onsets.appenditem(picture.red_circle.stimulusonset.156);
list.onsets.appenditem(picture.red_circle.stimulusonset.157);
list.onsets.appenditem(picture.red_circle.stimulusonset.158);
list.onsets.appenditem(picture.red_circle.stimulusonset.159);
list.onsets.appenditem(picture.red_circle.stimulusonset.160);
list.onsets.appenditem(picture.red_circle.stimulusonset.161);
list.onsets.appenditem(picture.red_circle.stimulusonset.162);
list.onsets.appenditem(picture.red_circle.stimulusonset.163);
list.onsets.appenditem(picture.red_circle.stimulusonset.164);
list.onsets.appenditem(picture.red_circle.stimulusonset.165);
list.onsets.appenditem(picture.red_circle.stimulusonset.166);
list.onsets.appenditem(picture.red_circle.stimulusonset.167);
list.onsets.appenditem(picture.red_circle.stimulusonset.168);
list.onsets.appenditem(picture.red_circle.stimulusonset.169);
list.onsets.appenditem(picture.red_circle.stimulusonset.170);
list.onsets.appenditem(picture.red_circle.stimulusonset.171);
list.onsets.appenditem(picture.red_circle.stimulusonset.172);
list.onsets.appenditem(picture.red_circle.stimulusonset.173);
list.onsets.appenditem(picture.red_circle.stimulusonset.174);
list.onsets.appenditem(picture.red_circle.stimulusonset.175);
list.onsets.appenditem(picture.red_circle.stimulusonset.176);
list.onsets.appenditem(picture.red_circle.stimulusonset.177);

list.frequency.appenditem(60/((picture.red_circle.stimulusonset.2-picture.red_circle.stimulusonset.1)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.3-picture.red_circle.stimulusonset.2)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.4-picture.red_circle.stimulusonset.3)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.5-picture.red_circle.stimulusonset.4)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.6-picture.red_circle.stimulusonset.5)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.7-picture.red_circle.stimulusonset.6)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.8-picture.red_circle.stimulusonset.7)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.9-picture.red_circle.stimulusonset.8)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.10-picture.red_circle.stimulusonset.9)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.11-picture.red_circle.stimulusonset.10)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.12-picture.red_circle.stimulusonset.11)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.13-picture.red_circle.stimulusonset.12)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.14-picture.red_circle.stimulusonset.13)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.15-picture.red_circle.stimulusonset.14)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.16-picture.red_circle.stimulusonset.15)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.17-picture.red_circle.stimulusonset.16)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.18-picture.red_circle.stimulusonset.17)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.19-picture.red_circle.stimulusonset.18)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.20-picture.red_circle.stimulusonset.19)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.21-picture.red_circle.stimulusonset.20)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.22-picture.red_circle.stimulusonset.21)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.23-picture.red_circle.stimulusonset.22)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.24-picture.red_circle.stimulusonset.23)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.25-picture.red_circle.stimulusonset.24)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.26-picture.red_circle.stimulusonset.25)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.27-picture.red_circle.stimulusonset.26)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.28-picture.red_circle.stimulusonset.27)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.29-picture.red_circle.stimulusonset.28)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.30-picture.red_circle.stimulusonset.29)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.31-picture.red_circle.stimulusonset.30)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.32-picture.red_circle.stimulusonset.31)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.33-picture.red_circle.stimulusonset.32)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.34-picture.red_circle.stimulusonset.33)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.35-picture.red_circle.stimulusonset.34)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.36-picture.red_circle.stimulusonset.35)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.37-picture.red_circle.stimulusonset.36)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.38-picture.red_circle.stimulusonset.37)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.39-picture.red_circle.stimulusonset.38)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.40-picture.red_circle.stimulusonset.39)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.41-picture.red_circle.stimulusonset.40)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.42-picture.red_circle.stimulusonset.41)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.43-picture.red_circle.stimulusonset.42)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.44-picture.red_circle.stimulusonset.43)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.45-picture.red_circle.stimulusonset.44)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.46-picture.red_circle.stimulusonset.45)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.47-picture.red_circle.stimulusonset.46)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.48-picture.red_circle.stimulusonset.47)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.49-picture.red_circle.stimulusonset.48)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.50-picture.red_circle.stimulusonset.49)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.51-picture.red_circle.stimulusonset.50)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.52-picture.red_circle.stimulusonset.51)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.53-picture.red_circle.stimulusonset.52)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.54-picture.red_circle.stimulusonset.53)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.55-picture.red_circle.stimulusonset.54)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.56-picture.red_circle.stimulusonset.55)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.57-picture.red_circle.stimulusonset.56)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.58-picture.red_circle.stimulusonset.57)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.59-picture.red_circle.stimulusonset.58)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.60-picture.red_circle.stimulusonset.59)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.61-picture.red_circle.stimulusonset.60)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.62-picture.red_circle.stimulusonset.61)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.63-picture.red_circle.stimulusonset.62)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.64-picture.red_circle.stimulusonset.63)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.65-picture.red_circle.stimulusonset.64)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.66-picture.red_circle.stimulusonset.65)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.67-picture.red_circle.stimulusonset.66)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.68-picture.red_circle.stimulusonset.67)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.69-picture.red_circle.stimulusonset.68)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.70-picture.red_circle.stimulusonset.69)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.71-picture.red_circle.stimulusonset.70)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.72-picture.red_circle.stimulusonset.71)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.73-picture.red_circle.stimulusonset.72)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.74-picture.red_circle.stimulusonset.73)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.75-picture.red_circle.stimulusonset.74)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.76-picture.red_circle.stimulusonset.75)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.77-picture.red_circle.stimulusonset.76)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.78-picture.red_circle.stimulusonset.77)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.79-picture.red_circle.stimulusonset.78)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.80-picture.red_circle.stimulusonset.79)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.81-picture.red_circle.stimulusonset.80)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.82-picture.red_circle.stimulusonset.81)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.83-picture.red_circle.stimulusonset.82)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.84-picture.red_circle.stimulusonset.83)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.85-picture.red_circle.stimulusonset.84)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.86-picture.red_circle.stimulusonset.85)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.87-picture.red_circle.stimulusonset.86)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.88-picture.red_circle.stimulusonset.87)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.89-picture.red_circle.stimulusonset.88)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.90-picture.red_circle.stimulusonset.89)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.91-picture.red_circle.stimulusonset.90)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.92-picture.red_circle.stimulusonset.91)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.93-picture.red_circle.stimulusonset.92)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.94-picture.red_circle.stimulusonset.93)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.95-picture.red_circle.stimulusonset.94)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.96-picture.red_circle.stimulusonset.95)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.97-picture.red_circle.stimulusonset.96)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.98-picture.red_circle.stimulusonset.97)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.99-picture.red_circle.stimulusonset.98)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.100-picture.red_circle.stimulusonset.99)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.101-picture.red_circle.stimulusonset.100)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.102-picture.red_circle.stimulusonset.101)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.103-picture.red_circle.stimulusonset.102)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.104-picture.red_circle.stimulusonset.103)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.105-picture.red_circle.stimulusonset.104)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.106-picture.red_circle.stimulusonset.105)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.107-picture.red_circle.stimulusonset.106)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.108-picture.red_circle.stimulusonset.107)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.109-picture.red_circle.stimulusonset.108)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.110-picture.red_circle.stimulusonset.109)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.111-picture.red_circle.stimulusonset.110)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.112-picture.red_circle.stimulusonset.111)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.113-picture.red_circle.stimulusonset.112)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.114-picture.red_circle.stimulusonset.113)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.115-picture.red_circle.stimulusonset.114)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.116-picture.red_circle.stimulusonset.115)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.117-picture.red_circle.stimulusonset.116)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.118-picture.red_circle.stimulusonset.117)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.119-picture.red_circle.stimulusonset.118)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.120-picture.red_circle.stimulusonset.119)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.121-picture.red_circle.stimulusonset.120)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.122-picture.red_circle.stimulusonset.121)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.123-picture.red_circle.stimulusonset.122)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.124-picture.red_circle.stimulusonset.123)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.125-picture.red_circle.stimulusonset.124)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.126-picture.red_circle.stimulusonset.125)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.127-picture.red_circle.stimulusonset.126)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.128-picture.red_circle.stimulusonset.127)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.129-picture.red_circle.stimulusonset.128)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.130-picture.red_circle.stimulusonset.129)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.131-picture.red_circle.stimulusonset.130)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.132-picture.red_circle.stimulusonset.131)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.133-picture.red_circle.stimulusonset.132)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.134-picture.red_circle.stimulusonset.133)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.135-picture.red_circle.stimulusonset.134)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.136-picture.red_circle.stimulusonset.135)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.137-picture.red_circle.stimulusonset.136)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.138-picture.red_circle.stimulusonset.137)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.139-picture.red_circle.stimulusonset.138)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.140-picture.red_circle.stimulusonset.139)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.141-picture.red_circle.stimulusonset.140)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.142-picture.red_circle.stimulusonset.141)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.143-picture.red_circle.stimulusonset.142)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.144-picture.red_circle.stimulusonset.143)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.145-picture.red_circle.stimulusonset.144)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.146-picture.red_circle.stimulusonset.145)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.147-picture.red_circle.stimulusonset.146)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.148-picture.red_circle.stimulusonset.147)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.149-picture.red_circle.stimulusonset.148)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.150-picture.red_circle.stimulusonset.149)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.151-picture.red_circle.stimulusonset.150)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.152-picture.red_circle.stimulusonset.151)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.153-picture.red_circle.stimulusonset.152)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.154-picture.red_circle.stimulusonset.153)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.155-picture.red_circle.stimulusonset.154)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.156-picture.red_circle.stimulusonset.155)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.157-picture.red_circle.stimulusonset.156)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.158-picture.red_circle.stimulusonset.157)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.159-picture.red_circle.stimulusonset.158)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.160-picture.red_circle.stimulusonset.159)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.161-picture.red_circle.stimulusonset.160)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.162-picture.red_circle.stimulusonset.161)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.163-picture.red_circle.stimulusonset.162)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.164-picture.red_circle.stimulusonset.163)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.165-picture.red_circle.stimulusonset.164)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.166-picture.red_circle.stimulusonset.165)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.167-picture.red_circle.stimulusonset.166)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.168-picture.red_circle.stimulusonset.167)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.169-picture.red_circle.stimulusonset.168)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.170-picture.red_circle.stimulusonset.169)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.171-picture.red_circle.stimulusonset.170)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.172-picture.red_circle.stimulusonset.171)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.173-picture.red_circle.stimulusonset.172)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.174-picture.red_circle.stimulusonset.173)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.175-picture.red_circle.stimulusonset.174)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.176-picture.red_circle.stimulusonset.175)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.177-picture.red_circle.stimulusonset.176)/1000));
list.frequency.appenditem((list.frequency.mean));

]
/ branch = [
trial.construct_bucket;
]
</trial>

<list latencies>
/ select = sequence
</list>

<list onsets>
/ select = sequence
</list>

<list acc>
</list>

<list frequency>
/select=sequence
</list>


<values>
/ current_onset = 0
/ current_min = 0
/ current_max = 0
/ current_latency = ""
/ bucketcount = 0
/ latencycount = 0
/ sum_acc_latencies = 0
/ sum_counted = 0
/ bucket_hit = 0
</values>


<trial construct_bucket>
/ ontrialbegin = [
values.bucketcount += 1;
values.bucket_hit = 0;
values.sum_counted = 0;
values.latencycount = 0;
values.current_onset = list.onsets.nextvalue;
values.current_frequency = list.frequency.nextvalue;
values.freq = concat(concat(values.freq, values.current_frequency),",");
if (values.current_frequency < 69.76) {values.current_min = values.current_onset - 125; values.current_max = values.current_onset + 750;};
else if (values.current_frequency > 69.76 && values.current_frequency < 94.25) {values.current_min = values.current_onset - 100; values.current_max = values.current_onset + 600;};
values.min = concat(concat(values.min,values.current_min),",");
values.max = concat(concat(values.max,values.current_max),",");]
/ stimulusframes = [1=clearscreen, debug]
/ branch = [
trial.check_latencies;
]
/ trialduration = 0
/ recorddata = false
</trial>

<trial check_latencies>
/ ontrialbegin = [
values.latencycount += 1;
values.current_latency = list.latencies.nextvalue;
if (values.current_latency >= values.current_min && values.current_latency <= values.current_max){values.sum_counted += 1; values.corrlat = concat(concat(values.corrlat, values.current_latency),",");};
 if(values.current_latency >= values.current_min && values.current_latency <= values.current_max && values.current_frequency < 69.76){values.sum_acc_69 += 1;};
  if(values.current_latency >= values.current_min && values.current_latency <= values.current_max && values.current_frequency > 69.76 && values.current_frequency < 94.25){values.sum_acc_betw += 1;};
if (values.sum_counted >=1) {values.bucket_hit = 1} else {
  values.bucket_hit = 0;
};
]
/ stimulusframes = [1=clearscreen, debug]
/ branch = [
if (values.latencycount < list.latencies.itemcount) {
 trial.check_latencies;
} else if (values.bucketcount < list.onsets.itemcount) {
 values.sum_acc_latencies += values.bucket_hit;
 trial.construct_bucket;
} else {
 values.sum_acc_latencies += values.bucket_hit;
 trial.score_result;
}
]
/ trialduration = 0
/ recorddata = false
</trial>

<trial score_result>
/ ontrialbegin = [
values.accuracy = 1-(abs(list.onsets.itemcount-values.sum_acc_latencies)/list.onsets.itemcount)]
/ stimulusframes = [1=clearscreen, debug]
/ validresponse = (57)
</trial>

<text debug>
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ items = ("Grazie per aver concluso l'esperimento!
Lascia che il computer concluda i calcoli e,
quando il livello di accuratezza (Final Accuracy) e' stato calcolato,
premi la barra spaziatrice per chiudere Inquisit.

Bucket <%values.bucketcount%> of <%list.onsets.itemcount%>
Latency <%values.latencycount%> of <%list.latencies.itemcount%>
Onset: <%values.current_onset%>| Min Latency: <%values.current_min%> | Max Latency: <%values.current_max%>
Current Latency: <%values.current_latency%>
Latencies in Bucket: <%values.sum_counted%>
Bucket Hit: <%values.bucket_hit%>
Accurate Latencies: <%values.sum_acc_latencies%> of <%list.latencies.itemcount%>
Final Accuracy: <%values.accuracy%>%")
/ erase = false
/ size = (60%, 40%)
</text>


<block prepre>
/ trials = [1=60hz; 2=instructions1; 3=instructions2]
</block>

<block pre>
/ trials = [1=fixate; 2=blank]
</block>

<block acc>
/ trials = [1=acc]
</block>

<expt >
/blocks=[
1=prepre;2=pre;3=acc;
]
</expt>

<data>
/ columns = [date,time,group,subject, display.refreshrate, values.min, values.corrlat, values.max, values.sum_counted, values.sum_acc_69, values.sum_acc_betw, values.freq, display.canvaswidth, display.canvasheight, trialduration, values.sum_acc_latencies, values.accuracy, values.timeofresponse,values.spacebarpresscount,
    
picture.black_circle.stimulusonset.1,    
picture.black_circle.stimulusonset.2,    
picture.black_circle.stimulusonset.3,    
picture.black_circle.stimulusonset.4,    
picture.black_circle.stimulusonset.5,    
picture.black_circle.stimulusonset.6,    
picture.black_circle.stimulusonset.7,    
picture.black_circle.stimulusonset.8,    
picture.black_circle.stimulusonset.9,    
picture.black_circle.stimulusonset.10,    
picture.black_circle.stimulusonset.11,    
picture.black_circle.stimulusonset.12,    
picture.black_circle.stimulusonset.13,    
picture.black_circle.stimulusonset.14,    
picture.black_circle.stimulusonset.15,    
picture.black_circle.stimulusonset.16,    
picture.black_circle.stimulusonset.17,    
picture.black_circle.stimulusonset.18,    
picture.black_circle.stimulusonset.19,    
picture.black_circle.stimulusonset.20,    
picture.black_circle.stimulusonset.21,    
picture.black_circle.stimulusonset.22,    
picture.black_circle.stimulusonset.23,    
picture.black_circle.stimulusonset.24,    
picture.black_circle.stimulusonset.25,    
picture.black_circle.stimulusonset.26,    
picture.black_circle.stimulusonset.27,    
picture.black_circle.stimulusonset.28,    
picture.black_circle.stimulusonset.29,    
picture.black_circle.stimulusonset.30,    
picture.black_circle.stimulusonset.31,    
picture.black_circle.stimulusonset.32,    
picture.black_circle.stimulusonset.33,    
picture.black_circle.stimulusonset.34,    
picture.black_circle.stimulusonset.35,    
picture.black_circle.stimulusonset.36,    
picture.black_circle.stimulusonset.37,    
picture.black_circle.stimulusonset.38,    
picture.black_circle.stimulusonset.39,    
picture.black_circle.stimulusonset.40,    
picture.black_circle.stimulusonset.41,    
picture.black_circle.stimulusonset.42,    
picture.black_circle.stimulusonset.43,    
picture.black_circle.stimulusonset.44,    
picture.black_circle.stimulusonset.45,    
picture.black_circle.stimulusonset.46,    
picture.black_circle.stimulusonset.47,    
picture.black_circle.stimulusonset.48,    
picture.black_circle.stimulusonset.49,    
picture.black_circle.stimulusonset.50,    
picture.black_circle.stimulusonset.51,    
picture.black_circle.stimulusonset.52,    
picture.black_circle.stimulusonset.53,    
picture.black_circle.stimulusonset.54,    
picture.black_circle.stimulusonset.55,    
picture.black_circle.stimulusonset.56,    
picture.black_circle.stimulusonset.57,    
picture.black_circle.stimulusonset.58,    
picture.black_circle.stimulusonset.59,    
picture.black_circle.stimulusonset.60,    
picture.black_circle.stimulusonset.61,    
picture.black_circle.stimulusonset.62,    
picture.black_circle.stimulusonset.63,    
picture.black_circle.stimulusonset.64,    
picture.black_circle.stimulusonset.65,    
picture.black_circle.stimulusonset.66,    
picture.black_circle.stimulusonset.67,    
picture.black_circle.stimulusonset.68,    
picture.black_circle.stimulusonset.69,    
picture.black_circle.stimulusonset.70,    
picture.black_circle.stimulusonset.71,    
picture.black_circle.stimulusonset.72,    
picture.black_circle.stimulusonset.73,    
picture.black_circle.stimulusonset.74,    
picture.black_circle.stimulusonset.75,    
picture.black_circle.stimulusonset.76,    
picture.black_circle.stimulusonset.77,    
picture.black_circle.stimulusonset.78,    
picture.black_circle.stimulusonset.79,    
picture.black_circle.stimulusonset.80,    
picture.black_circle.stimulusonset.81,    
picture.black_circle.stimulusonset.82,    
picture.black_circle.stimulusonset.83,    
picture.black_circle.stimulusonset.84,    
picture.black_circle.stimulusonset.85,    
picture.black_circle.stimulusonset.86,    
picture.black_circle.stimulusonset.87,    
picture.black_circle.stimulusonset.88,    
picture.black_circle.stimulusonset.89,    
picture.black_circle.stimulusonset.90,    
picture.black_circle.stimulusonset.91,    
picture.black_circle.stimulusonset.92,    
picture.black_circle.stimulusonset.93,    
picture.black_circle.stimulusonset.94,    
picture.black_circle.stimulusonset.95,    
picture.black_circle.stimulusonset.96,    
picture.black_circle.stimulusonset.97,    
picture.black_circle.stimulusonset.98,    
picture.black_circle.stimulusonset.99,    
picture.black_circle.stimulusonset.100,    
picture.black_circle.stimulusonset.101,    
picture.black_circle.stimulusonset.102,    
picture.black_circle.stimulusonset.103,    
picture.black_circle.stimulusonset.104,    
picture.black_circle.stimulusonset.105,    
picture.black_circle.stimulusonset.106,    
picture.black_circle.stimulusonset.107,    
picture.black_circle.stimulusonset.108,    
picture.black_circle.stimulusonset.109,    
picture.black_circle.stimulusonset.110,    
picture.black_circle.stimulusonset.111,    
picture.black_circle.stimulusonset.112,    
picture.black_circle.stimulusonset.113,    
picture.black_circle.stimulusonset.114,    
picture.black_circle.stimulusonset.115,    
picture.black_circle.stimulusonset.116,    
picture.black_circle.stimulusonset.117,    
picture.black_circle.stimulusonset.118,    
picture.black_circle.stimulusonset.119,    
picture.black_circle.stimulusonset.120,    
picture.black_circle.stimulusonset.121,    
picture.black_circle.stimulusonset.122,    
picture.black_circle.stimulusonset.123,    
picture.black_circle.stimulusonset.124,    
picture.black_circle.stimulusonset.125,    
picture.black_circle.stimulusonset.126,    
picture.black_circle.stimulusonset.127,    
picture.black_circle.stimulusonset.128,    
picture.black_circle.stimulusonset.129,    
picture.black_circle.stimulusonset.130,    
picture.black_circle.stimulusonset.131,    
picture.black_circle.stimulusonset.132,    
picture.black_circle.stimulusonset.133,    
picture.black_circle.stimulusonset.134,    
picture.black_circle.stimulusonset.135,    
picture.black_circle.stimulusonset.136,    
picture.black_circle.stimulusonset.137,    
picture.black_circle.stimulusonset.138,    
picture.black_circle.stimulusonset.139,    
picture.black_circle.stimulusonset.140,    
picture.black_circle.stimulusonset.141,    
picture.black_circle.stimulusonset.142,    
picture.black_circle.stimulusonset.143,    
picture.black_circle.stimulusonset.144,    
picture.black_circle.stimulusonset.145,    
picture.black_circle.stimulusonset.146,    
picture.black_circle.stimulusonset.147,    
picture.black_circle.stimulusonset.148,    
picture.black_circle.stimulusonset.149,    
picture.black_circle.stimulusonset.150,    
picture.black_circle.stimulusonset.151,    
picture.black_circle.stimulusonset.152,    
picture.black_circle.stimulusonset.153,    
picture.black_circle.stimulusonset.154,    
picture.black_circle.stimulusonset.155,    
picture.black_circle.stimulusonset.156,    
picture.black_circle.stimulusonset.157,    
picture.black_circle.stimulusonset.158,    
picture.black_circle.stimulusonset.159,    
picture.black_circle.stimulusonset.160,    
picture.black_circle.stimulusonset.161,    
picture.black_circle.stimulusonset.162,    
picture.black_circle.stimulusonset.163,    
picture.black_circle.stimulusonset.164,    
picture.black_circle.stimulusonset.165,    
picture.black_circle.stimulusonset.166,    
picture.black_circle.stimulusonset.167,    
picture.black_circle.stimulusonset.168,    
picture.black_circle.stimulusonset.169,    
picture.black_circle.stimulusonset.170,    
picture.black_circle.stimulusonset.171,    
picture.black_circle.stimulusonset.172,    
picture.black_circle.stimulusonset.173,    
picture.black_circle.stimulusonset.174,    
picture.black_circle.stimulusonset.175,    
picture.black_circle.stimulusonset.176,    
picture.black_circle.stimulusonset.177,    



picture.red_circle.stimulusonset.1,
picture.red_circle.stimulusonset.2,
picture.red_circle.stimulusonset.3,
picture.red_circle.stimulusonset.4,
picture.red_circle.stimulusonset.5,
picture.red_circle.stimulusonset.6,
picture.red_circle.stimulusonset.7,
picture.red_circle.stimulusonset.8,
picture.red_circle.stimulusonset.9,
picture.red_circle.stimulusonset.10,
picture.red_circle.stimulusonset.11,
picture.red_circle.stimulusonset.12,
picture.red_circle.stimulusonset.13,
picture.red_circle.stimulusonset.14,
picture.red_circle.stimulusonset.15,
picture.red_circle.stimulusonset.16,
picture.red_circle.stimulusonset.17,
picture.red_circle.stimulusonset.18,
picture.red_circle.stimulusonset.19,
picture.red_circle.stimulusonset.20,
picture.red_circle.stimulusonset.21,
picture.red_circle.stimulusonset.22,
picture.red_circle.stimulusonset.23,
picture.red_circle.stimulusonset.24,
picture.red_circle.stimulusonset.25,
picture.red_circle.stimulusonset.26,
picture.red_circle.stimulusonset.27,
picture.red_circle.stimulusonset.28,
picture.red_circle.stimulusonset.29,
picture.red_circle.stimulusonset.30,
picture.red_circle.stimulusonset.31,
picture.red_circle.stimulusonset.32,
picture.red_circle.stimulusonset.33,
picture.red_circle.stimulusonset.34,
picture.red_circle.stimulusonset.35,
picture.red_circle.stimulusonset.36,
picture.red_circle.stimulusonset.37,
picture.red_circle.stimulusonset.38,
picture.red_circle.stimulusonset.39,
picture.red_circle.stimulusonset.40,
picture.red_circle.stimulusonset.41,
picture.red_circle.stimulusonset.42,
picture.red_circle.stimulusonset.43,
picture.red_circle.stimulusonset.44,
picture.red_circle.stimulusonset.45,
picture.red_circle.stimulusonset.46,
picture.red_circle.stimulusonset.47,
picture.red_circle.stimulusonset.48,
picture.red_circle.stimulusonset.49,
picture.red_circle.stimulusonset.50,
picture.red_circle.stimulusonset.51,
picture.red_circle.stimulusonset.52,
picture.red_circle.stimulusonset.53,
picture.red_circle.stimulusonset.54,
picture.red_circle.stimulusonset.55,
picture.red_circle.stimulusonset.56,
picture.red_circle.stimulusonset.57,
picture.red_circle.stimulusonset.58,
picture.red_circle.stimulusonset.59,
picture.red_circle.stimulusonset.60,
picture.red_circle.stimulusonset.61,
picture.red_circle.stimulusonset.62,
picture.red_circle.stimulusonset.63,
picture.red_circle.stimulusonset.64,
picture.red_circle.stimulusonset.65,
picture.red_circle.stimulusonset.66,
picture.red_circle.stimulusonset.67,
picture.red_circle.stimulusonset.68,
picture.red_circle.stimulusonset.69,
picture.red_circle.stimulusonset.70,
picture.red_circle.stimulusonset.71,
picture.red_circle.stimulusonset.72,
picture.red_circle.stimulusonset.73,
picture.red_circle.stimulusonset.74,
picture.red_circle.stimulusonset.75,
picture.red_circle.stimulusonset.76,
picture.red_circle.stimulusonset.77,
picture.red_circle.stimulusonset.78,
picture.red_circle.stimulusonset.79,
picture.red_circle.stimulusonset.80,
picture.red_circle.stimulusonset.81,
picture.red_circle.stimulusonset.82,
picture.red_circle.stimulusonset.83,
picture.red_circle.stimulusonset.84,
picture.red_circle.stimulusonset.85,
picture.red_circle.stimulusonset.86,
picture.red_circle.stimulusonset.87,
picture.red_circle.stimulusonset.88,
picture.red_circle.stimulusonset.89,
picture.red_circle.stimulusonset.90,
picture.red_circle.stimulusonset.91,
picture.red_circle.stimulusonset.92,
picture.red_circle.stimulusonset.93,
picture.red_circle.stimulusonset.94,
picture.red_circle.stimulusonset.95,
picture.red_circle.stimulusonset.96,
picture.red_circle.stimulusonset.97,
picture.red_circle.stimulusonset.98,
picture.red_circle.stimulusonset.99,
picture.red_circle.stimulusonset.100,
picture.red_circle.stimulusonset.101,
picture.red_circle.stimulusonset.102,
picture.red_circle.stimulusonset.103,
picture.red_circle.stimulusonset.104,
picture.red_circle.stimulusonset.105,
picture.red_circle.stimulusonset.106,
picture.red_circle.stimulusonset.107,
picture.red_circle.stimulusonset.108,
picture.red_circle.stimulusonset.109,
picture.red_circle.stimulusonset.110,
picture.red_circle.stimulusonset.111,
picture.red_circle.stimulusonset.112,
picture.red_circle.stimulusonset.113,
picture.red_circle.stimulusonset.114,
picture.red_circle.stimulusonset.115,
picture.red_circle.stimulusonset.116,
picture.red_circle.stimulusonset.117,
picture.red_circle.stimulusonset.118,
picture.red_circle.stimulusonset.119,
picture.red_circle.stimulusonset.120,
picture.red_circle.stimulusonset.121,
picture.red_circle.stimulusonset.122,
picture.red_circle.stimulusonset.123,
picture.red_circle.stimulusonset.124,
picture.red_circle.stimulusonset.125,
picture.red_circle.stimulusonset.126,
picture.red_circle.stimulusonset.127,
picture.red_circle.stimulusonset.128,
picture.red_circle.stimulusonset.129,
picture.red_circle.stimulusonset.130,
picture.red_circle.stimulusonset.131,
picture.red_circle.stimulusonset.132,
picture.red_circle.stimulusonset.133,
picture.red_circle.stimulusonset.134,
picture.red_circle.stimulusonset.135,
picture.red_circle.stimulusonset.136,
picture.red_circle.stimulusonset.137,
picture.red_circle.stimulusonset.138,
picture.red_circle.stimulusonset.139,
picture.red_circle.stimulusonset.140,
picture.red_circle.stimulusonset.141,
picture.red_circle.stimulusonset.142,
picture.red_circle.stimulusonset.143,
picture.red_circle.stimulusonset.144,
picture.red_circle.stimulusonset.145,
picture.red_circle.stimulusonset.146,
picture.red_circle.stimulusonset.147,
picture.red_circle.stimulusonset.148,
picture.red_circle.stimulusonset.149,
picture.red_circle.stimulusonset.150,
picture.red_circle.stimulusonset.151,
picture.red_circle.stimulusonset.152,
picture.red_circle.stimulusonset.153,
picture.red_circle.stimulusonset.154,
picture.red_circle.stimulusonset.155,
picture.red_circle.stimulusonset.156,
picture.red_circle.stimulusonset.157,
picture.red_circle.stimulusonset.158,
picture.red_circle.stimulusonset.159,
picture.red_circle.stimulusonset.160,
picture.red_circle.stimulusonset.161,
picture.red_circle.stimulusonset.162,
picture.red_circle.stimulusonset.163,
picture.red_circle.stimulusonset.164,
picture.red_circle.stimulusonset.165,
picture.red_circle.stimulusonset.166,
picture.red_circle.stimulusonset.167,
picture.red_circle.stimulusonset.168,
picture.red_circle.stimulusonset.169,
picture.red_circle.stimulusonset.170,
picture.red_circle.stimulusonset.171,
picture.red_circle.stimulusonset.172,
picture.red_circle.stimulusonset.173,
picture.red_circle.stimulusonset.174,
picture.red_circle.stimulusonset.175,
picture.red_circle.stimulusonset.176,
picture.red_circle.stimulusonset.177,
]
</data>

<defaults>
/ screencolor = (195,195,195)
/ txbgcolor = (195,195,195)
/ txcolor = white
</defaults>

if () else if () constructs ought to NOT have a separator (;) between them.

Your logic also does not cover the case where frequency is exactly 69.76, you only cover the cases where it's either smaller or larger.

eleonora_parr
eleonora_parr
Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)
Group: Forum Members
Posts: 34, Visits: 132
Dave - 3/25/2021
eleonora_parr - 3/25/2021
Dear Inquisiters, 
I am trying to program a sort of psychophisics in inquisit: participants have to synchronize their responses with the appearance of a circle on the screen. Their accuracy is calculated according to how many of their responses fell in an range of time that was very close to the appearance of this circle. This range is calculated according to the frequency at which this circle is showed, which is variable over time, and then, calculated based on the distance between one appearance and the subsequent one (i.e.  list.frequency.appenditem(60/((picture.red_circle.stimulusonset.2-picture.red_circle.stimulusonset.1)/1000));
So, if the calculated frequency is lower than 69.76, then the range of an accurate response is between -125 and +750 ms compared to the appearance of the circle
if it is between 69.76 and 94.25,  then the range of an accurate response is between -100 and +600 ms compared to the appearance of the circle

The code works until a certain point, specifically the calculation of the range based on the 21th calculated frequency : even if that frequency is lower than 69.76, the range is calculated as if the frequency was  between 69.76 and 94.25. I also could compared that as I saved all these variables (index_min, index_max, all the onsets and calculated frequency)... 
Does somebody knows what's going on??
You can just replace the images with two random pics, it doesn't really matters what it is shown.. 

Here is the code, thank you so much

Eleonora


<picture red_circle>
/ items = ("255.png")
/ position = (50%,50%)
/size=(30%, 30%)
</picture>


<picture black_circle>
/ items = ("195.png")
/ position = (50%,50%)
/size=(30%, 30%)
</picture>

<shape blank>
/ color = (195,195,195)
/ position = (50%,50%)
/ shape = rectangle
/size=(30%, 30%)
</shape>

<shape backgroundcolor>
/ shape = rectangle
/ color = white
/ erase = false
/ size = (100%, 100%)
</shape>

<picture checker>
/items=("scacchieracc1.png")
/ position = (50%, 50%)
/ size = (30%, 30%)
</picture>


<trial blank>
/stimulusframes=[1=blank]
/ trialduration = 3000
</trial>

<text cross>
/items=("+")
/position = (50%, 50%)
</text>

<trial fixate>
/ stimulusframes = [1=cross]
/ trialduration = 2000
</trial>

<values>
/current_frequency = ""
/timeofresponse=""
/spacebarpresscount =""
/accuracy = ""
/sum_acc_betw =""
/sum_acc_69 = ""
/freq = ""
/min = ""
/max= ""
/corrlat=""
</values>

<text 60hz>
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ position = (50%, 50%)
/ txbgcolor = transparent
/ erase = false
/ txcolor = white

/ items = ("
    Benvenuto in questo esperimento e grazie per la tua partecipazione.
    Si tratta di un compito di due minuti e mezzo, ma e' molto importante
    che tu faccia del tuo meglio nell'esecuzione del compito.
    Assicurati che il tuo schermo sia impostato su un refresh rate di 60 Hz:
    per controllarlo esci dall'esperimento premendo CTRL+Q,
    poi vai nelle impostazioni del computer > Sistema > Schermo >
    Impostazioni Schermo Avanzate > Frequenza di Aggiornamento.
    Nel menu frequenza di aggiornamento controllare che il refresh rate sia impostato a 60 Hz.
    Se non lo e', fare click su Proprieta', nella sezione Monitor, e impostare nella tendina 60 Hz e quindi fare clic su OK.
    Quando hai impostato lo schermo a 60 Hz e sei pronto per iniziare l'esperimento, riapri il file dell'esperimento e premi
    'continua' in basso a destra per leggere le istruzioni. ")
</text>

<text continue>
/ items = ("Continua")
/ size = (9%, 5%)
/ position = (75%, 90%)
/ fontstyle = ("Trebuchet MS", 4%, false, false, false, false, 5, 1)
/ txbgcolor = white
/ txcolor = black
</text>


<trial 60hz>
/ ontrialbegin = [
  shape.backgroundcolor.color = black;]

/ stimulusframes = [1=clearscreen,backgroundcolor,60hz, continue]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (continue)
</trial>

<text instructions>
/ txbgcolor = transparent
/ erase = false
/ txcolor = white
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ position = (50%, 50%)
/ items = ("
Ora che il tuo monitor e' impostato al refresh rate di 60 Hz, leggi le istruzioni per procedere all'esperimento:
Appena l'esperimento comincera', vedrai una croce di fissazione apparire al centro dello schermo.
Dopo pochi secondi la croce scomparira', e poco dopo vedrai una scacchiera nera apparire al centro dello schermo.
Sotto alla scacchiera, vedrai ogni tanto apparire un cerchio bianco,
che scomparira' molto rapidamente. Il cerchio comparira' e scomparira' in maniera continuativa durante tutto
l'esperimento.
Il tuo compito sara' quello di premere la barra spaziatrice ogni volta che il cerchio bianco comparira',
sincronizzando la pressione della barra spaziatrice con ogni apparizione del cerchio bianco.
Cerca di essere il piu' accurato possibile e di premere la barra spaziatrice ogni
volta che il cerchio compare.
Premi 'continua' per continuare a leggere le istruzioni. ")
</text>


<text instructions2>
/ txbgcolor = transparent
/ erase = false
/ txcolor = white
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ position = (50%, 50%)
/ items = ("
    Alla fine dell'esperimento vedrai comparire una schermata grigia dove delle scritte indicano
    che il computer sta calcolando il livello di accuratezza.
    Quando questa schermata compare non fare nulla. Aspetta che il computer finisca il calcolo, ci vorranno un po' di minuti.
    Il calcolo finira' quando il livello di accuratezza in percentuale comparira' nell'ultima riga.
    Non devi preoccuparti del numero che otterrai, questo calcolo serve a noi per condurre delle statistiche ed esplorare la
    percezione visiva.
    Solo quando il PC ha finito il calcolo e l'accuratezza % e' stata calcolata, premi la barra spaziatrice per concludere.
    Appena sei pronto ad iniziare, premi continua qui sotto e posiziona subito la mano sulla barra spaziatrice
    per essere pronto a premerla sincronizzandoti con ogni volta che il cerchio bianco compare.")
</text>

<trial instructions1>
/ ontrialbegin = [
  shape.backgroundcolor.color = black;]

/ stimulusframes = [1=clearscreen,backgroundcolor,instructions, continue]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (continue)
</trial>

<trial instructions2>
/ ontrialbegin = [
  shape.backgroundcolor.color = black;]

/ stimulusframes = [1=clearscreen,backgroundcolor,instructions2, continue]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (continue)
</trial>

<trial acc>
/ ontrialbegin = [
values.spacebarpresscount = "";
values.timeofresponse = "";
values.accuracy = "";
values.current_onset = "";
values.current_max = "";
values.current_min = "";
values.current_latency = "";
values.sum_acc_latencies = 0;
values.bucketcount = 0;
values.latencycount = 0;
values.sum_counted = 0;
values.bucket_hit = 0;

list.acc.reset();
list.latencies.reset();
list.onsets.reset();
]
/pretrialpause = 1000
/stimulustimes=[
0=checker;
1000=red_circle;
1755=red_circle;
2494=red_circle;
3203=red_circle;
3964=red_circle;
4719=red_circle;
5486=red_circle;
6279=red_circle;
7063=red_circle;
7849=red_circle;
8637=red_circle;
9389=red_circle;
10167=red_circle;
10951=red_circle;
11712=red_circle;
12519=red_circle;
13360=red_circle;
14175=red_circle;
15038=red_circle;
15911=red_circle;
16778=red_circle;
17668=red_circle;
18552=red_circle;
19426=red_circle;
20307=red_circle;
21183=red_circle;
22038=red_circle;
22907=red_circle;
23770=red_circle;
24632=red_circle;
25525=red_circle;
26387=red_circle;
27266=red_circle;
28150=red_circle;
28979=red_circle;
29833=red_circle;
30671=red_circle;
31470=red_circle;
32296=red_circle;
33132=red_circle;
33951=red_circle;
34826=red_circle;
35658=red_circle;
36507=red_circle;
37375=red_circle;
38217=red_circle;
39070=red_circle;
39937=red_circle;
40760=red_circle;
41597=red_circle;
42432=red_circle;
43237=red_circle;
44052=red_circle;
44835=red_circle;
45625=red_circle;
46443=red_circle;
47251=red_circle;
48098=red_circle;
48972=red_circle;
49829=red_circle;
50680=red_circle;
51561=red_circle;
52408=red_circle;
53257=red_circle;
54101=red_circle;
54943=red_circle;
55757=red_circle;
56651=red_circle;
57572=red_circle;
58456=red_circle;
59364=red_circle;
60278=red_circle;
61142=red_circle;
62023=red_circle;
62889=red_circle;
63719=red_circle;
64588=red_circle;
65463=red_circle;
66277=red_circle;
67123=red_circle;
67973=red_circle;
68810=red_circle;
69650=red_circle;
70523=red_circle;
71386=red_circle;
72246=red_circle;
73150=red_circle;
74049=red_circle;
74912=red_circle;
75802=red_circle;
76699=red_circle;
77558=red_circle;
78444=red_circle;
79343=red_circle;
80190=red_circle;
81073=red_circle;
81964=red_circle;
82822=red_circle;
83729=red_circle;
84636=red_circle;
85511=red_circle;
86391=red_circle;
87287=red_circle;
88139=red_circle;
88962=red_circle;
89779=red_circle;
90585=red_circle;
91390=red_circle;
92235=red_circle;
93107=red_circle;
93924=red_circle;
94800=red_circle;
95685=red_circle;
96508=red_circle;
97367=red_circle;
98200=red_circle;
99034=red_circle;
99891=red_circle;
100744=red_circle;
101575=red_circle;
102429=red_circle;
103274=red_circle;
104087=red_circle;
104947=red_circle;
105852=red_circle;
106730=red_circle;
107626=red_circle;
108519=red_circle;
109353=red_circle;
110195=red_circle;
111044=red_circle;
111857=red_circle;
112660=red_circle;
113493=red_circle;
114340=red_circle;
115151=red_circle;
115994=red_circle;
116867=red_circle;
117726=red_circle;
118567=red_circle;
119449=red_circle;
120319=red_circle;
121148=red_circle;
122005=red_circle;
122849=red_circle;
123673=red_circle;
124482=red_circle;
125319=red_circle;
126153=red_circle;
126983=red_circle;
127852=red_circle;
128723=red_circle;
129598=red_circle;
130502=red_circle;
131375=red_circle;
132222=red_circle;
133075=red_circle;
133925=red_circle;
134732=red_circle;
135558=red_circle;
136399=red_circle;
137225=red_circle;
138043=red_circle;
138902=red_circle;
139764=red_circle;
140597=red_circle;
141489=red_circle;
142377=red_circle;
143212=red_circle;
144076=red_circle;
144938=red_circle;
145774=red_circle;
146614=red_circle;
147472=red_circle;
148297=red_circle;
149174=red_circle;
150095=red_circle;

1045=black_circle;
1800=black_circle;
2539=black_circle;
3248=black_circle;
4009=black_circle;
4764=black_circle;
5531=black_circle;
6324=black_circle;
7108=black_circle;
7894=black_circle;
8682=black_circle;
9434=black_circle;
10212=black_circle;
10996=black_circle;
11757=black_circle;
12564=black_circle;
13405=black_circle;
14220=black_circle;
15083=black_circle;
15956=black_circle;
16823=black_circle;
17713=black_circle;
18597=black_circle;
19471=black_circle;
20352=black_circle;
21228=black_circle;
22083=black_circle;
22952=black_circle;
23815=black_circle;
24677=black_circle;
25570=black_circle;
26432=black_circle;
27311=black_circle;
28195=black_circle;
29024=black_circle;
29878=black_circle;
30716=black_circle;
31515=black_circle;
32341=black_circle;
33177=black_circle;
33996=black_circle;
34871=black_circle;
35703=black_circle;
36552=black_circle;
37420=black_circle;
38262=black_circle;
39115=black_circle;
39982=black_circle;
40805=black_circle;
41642=black_circle;
42477=black_circle;
43282=black_circle;
44097=black_circle;
44880=black_circle;
45670=black_circle;
46488=black_circle;
47296=black_circle;
48143=black_circle;
49017=black_circle;
49874=black_circle;
50725=black_circle;
51606=black_circle;
52453=black_circle;
53302=black_circle;
54146=black_circle;
54988=black_circle;
55802=black_circle;
56696=black_circle;
57617=black_circle;
58501=black_circle;
59409=black_circle;
60323=black_circle;
61187=black_circle;
62068=black_circle;
62934=black_circle;
63764=black_circle;
64633=black_circle;
65508=black_circle;
66322=black_circle;
67168=black_circle;
68018=black_circle;
68855=black_circle;
69695=black_circle;
70568=black_circle;
71431=black_circle;
72291=black_circle;
73195=black_circle;
74094=black_circle;
74957=black_circle;
75847=black_circle;
76744=black_circle;
77603=black_circle;
78489=black_circle;
79388=black_circle;
80235=black_circle;
81118=black_circle;
82009=black_circle;
82867=black_circle;
83774=black_circle;
84681=black_circle;
85556=black_circle;
86436=black_circle;
87332=black_circle;
88184=black_circle;
89007=black_circle;
89824=black_circle;
90630=black_circle;
91435=black_circle;
92280=black_circle;
93152=black_circle;
93969=black_circle;
94845=black_circle;
95730=black_circle;
96553=black_circle;
97412=black_circle;
98245=black_circle;
99079=black_circle;
99936=black_circle;
100789=black_circle;
101620=black_circle;
102474=black_circle;
103319=black_circle;
104132=black_circle;
104992=black_circle;
105897=black_circle;
106775=black_circle;
107671=black_circle;
108564=black_circle;
109398=black_circle;
110240=black_circle;
111089=black_circle;
111902=black_circle;
112705=black_circle;
113538=black_circle;
114385=black_circle;
115196=black_circle;
116039=black_circle;
116912=black_circle;
117771=black_circle;
118612=black_circle;
119494=black_circle;
120364=black_circle;
121193=black_circle;
122050=black_circle;
122894=black_circle;
123718=black_circle;
124527=black_circle;
125364=black_circle;
126198=black_circle;
127028=black_circle;
127897=black_circle;
128768=black_circle;
129643=black_circle;
130547=black_circle;
131420=black_circle;
132267=black_circle;
133120=black_circle;
133970=black_circle;
134777=black_circle;
135603=black_circle;
136444=black_circle;
137270=black_circle;
138088=black_circle;
138947=black_circle;
139809=black_circle;
140642=black_circle;
141534=black_circle;
142422=black_circle;
143257=black_circle;
144121=black_circle;
144983=black_circle;
145819=black_circle;
146659=black_circle;
147517=black_circle;
148342=black_circle;
149219=black_circle;
150140=black_circle;


]
/ trialduration = 150140+1000
/ inputdevice = keyboard
/ beginresponsetime = -1
/ responseinterrupt = trial
/ validresponse = (-57, 0)
/ correctresponse = (0)
/ showmousecursor = false
/ isvalidresponse = [if(trial.acc.response==57){
values.spacebarpresscount += 1;
values.timeofresponse=concat(concat(values.timeofresponse, trial.acc.latency),",");
list.latencies.appenditem(trial.acc.latency);
false}
;
]
/ ontrialend = [
list.onsets.appenditem(picture.red_circle.stimulusonset.1);
list.onsets.appenditem(picture.red_circle.stimulusonset.2);
list.onsets.appenditem(picture.red_circle.stimulusonset.3);
list.onsets.appenditem(picture.red_circle.stimulusonset.4);
list.onsets.appenditem(picture.red_circle.stimulusonset.5);
list.onsets.appenditem(picture.red_circle.stimulusonset.6);
list.onsets.appenditem(picture.red_circle.stimulusonset.7);
list.onsets.appenditem(picture.red_circle.stimulusonset.8);
list.onsets.appenditem(picture.red_circle.stimulusonset.9);
list.onsets.appenditem(picture.red_circle.stimulusonset.10);
list.onsets.appenditem(picture.red_circle.stimulusonset.11);
list.onsets.appenditem(picture.red_circle.stimulusonset.12);
list.onsets.appenditem(picture.red_circle.stimulusonset.13);
list.onsets.appenditem(picture.red_circle.stimulusonset.14);
list.onsets.appenditem(picture.red_circle.stimulusonset.15);
list.onsets.appenditem(picture.red_circle.stimulusonset.16);
list.onsets.appenditem(picture.red_circle.stimulusonset.17);
list.onsets.appenditem(picture.red_circle.stimulusonset.18);
list.onsets.appenditem(picture.red_circle.stimulusonset.19);
list.onsets.appenditem(picture.red_circle.stimulusonset.20);
list.onsets.appenditem(picture.red_circle.stimulusonset.21);
list.onsets.appenditem(picture.red_circle.stimulusonset.22);
list.onsets.appenditem(picture.red_circle.stimulusonset.23);
list.onsets.appenditem(picture.red_circle.stimulusonset.24);
list.onsets.appenditem(picture.red_circle.stimulusonset.25);
list.onsets.appenditem(picture.red_circle.stimulusonset.26);
list.onsets.appenditem(picture.red_circle.stimulusonset.27);
list.onsets.appenditem(picture.red_circle.stimulusonset.28);
list.onsets.appenditem(picture.red_circle.stimulusonset.29);
list.onsets.appenditem(picture.red_circle.stimulusonset.30);
list.onsets.appenditem(picture.red_circle.stimulusonset.31);
list.onsets.appenditem(picture.red_circle.stimulusonset.32);
list.onsets.appenditem(picture.red_circle.stimulusonset.33);
list.onsets.appenditem(picture.red_circle.stimulusonset.34);
list.onsets.appenditem(picture.red_circle.stimulusonset.35);
list.onsets.appenditem(picture.red_circle.stimulusonset.36);
list.onsets.appenditem(picture.red_circle.stimulusonset.37);
list.onsets.appenditem(picture.red_circle.stimulusonset.38);
list.onsets.appenditem(picture.red_circle.stimulusonset.39);
list.onsets.appenditem(picture.red_circle.stimulusonset.40);
list.onsets.appenditem(picture.red_circle.stimulusonset.41);
list.onsets.appenditem(picture.red_circle.stimulusonset.42);
list.onsets.appenditem(picture.red_circle.stimulusonset.43);
list.onsets.appenditem(picture.red_circle.stimulusonset.44);
list.onsets.appenditem(picture.red_circle.stimulusonset.45);
list.onsets.appenditem(picture.red_circle.stimulusonset.46);
list.onsets.appenditem(picture.red_circle.stimulusonset.47);
list.onsets.appenditem(picture.red_circle.stimulusonset.48);
list.onsets.appenditem(picture.red_circle.stimulusonset.49);
list.onsets.appenditem(picture.red_circle.stimulusonset.50);
list.onsets.appenditem(picture.red_circle.stimulusonset.51);
list.onsets.appenditem(picture.red_circle.stimulusonset.52);
list.onsets.appenditem(picture.red_circle.stimulusonset.53);
list.onsets.appenditem(picture.red_circle.stimulusonset.54);
list.onsets.appenditem(picture.red_circle.stimulusonset.55);
list.onsets.appenditem(picture.red_circle.stimulusonset.56);
list.onsets.appenditem(picture.red_circle.stimulusonset.57);
list.onsets.appenditem(picture.red_circle.stimulusonset.58);
list.onsets.appenditem(picture.red_circle.stimulusonset.59);
list.onsets.appenditem(picture.red_circle.stimulusonset.60);
list.onsets.appenditem(picture.red_circle.stimulusonset.61);
list.onsets.appenditem(picture.red_circle.stimulusonset.62);
list.onsets.appenditem(picture.red_circle.stimulusonset.63);
list.onsets.appenditem(picture.red_circle.stimulusonset.64);
list.onsets.appenditem(picture.red_circle.stimulusonset.65);
list.onsets.appenditem(picture.red_circle.stimulusonset.66);
list.onsets.appenditem(picture.red_circle.stimulusonset.67);
list.onsets.appenditem(picture.red_circle.stimulusonset.68);
list.onsets.appenditem(picture.red_circle.stimulusonset.69);
list.onsets.appenditem(picture.red_circle.stimulusonset.70);
list.onsets.appenditem(picture.red_circle.stimulusonset.71);
list.onsets.appenditem(picture.red_circle.stimulusonset.72);
list.onsets.appenditem(picture.red_circle.stimulusonset.73);
list.onsets.appenditem(picture.red_circle.stimulusonset.74);
list.onsets.appenditem(picture.red_circle.stimulusonset.75);
list.onsets.appenditem(picture.red_circle.stimulusonset.76);
list.onsets.appenditem(picture.red_circle.stimulusonset.77);
list.onsets.appenditem(picture.red_circle.stimulusonset.78);
list.onsets.appenditem(picture.red_circle.stimulusonset.79);
list.onsets.appenditem(picture.red_circle.stimulusonset.80);
list.onsets.appenditem(picture.red_circle.stimulusonset.81);
list.onsets.appenditem(picture.red_circle.stimulusonset.82);
list.onsets.appenditem(picture.red_circle.stimulusonset.83);
list.onsets.appenditem(picture.red_circle.stimulusonset.84);
list.onsets.appenditem(picture.red_circle.stimulusonset.85);
list.onsets.appenditem(picture.red_circle.stimulusonset.86);
list.onsets.appenditem(picture.red_circle.stimulusonset.87);
list.onsets.appenditem(picture.red_circle.stimulusonset.88);
list.onsets.appenditem(picture.red_circle.stimulusonset.89);
list.onsets.appenditem(picture.red_circle.stimulusonset.90);
list.onsets.appenditem(picture.red_circle.stimulusonset.91);
list.onsets.appenditem(picture.red_circle.stimulusonset.92);
list.onsets.appenditem(picture.red_circle.stimulusonset.93);
list.onsets.appenditem(picture.red_circle.stimulusonset.94);
list.onsets.appenditem(picture.red_circle.stimulusonset.95);
list.onsets.appenditem(picture.red_circle.stimulusonset.96);
list.onsets.appenditem(picture.red_circle.stimulusonset.97);
list.onsets.appenditem(picture.red_circle.stimulusonset.98);
list.onsets.appenditem(picture.red_circle.stimulusonset.99);
list.onsets.appenditem(picture.red_circle.stimulusonset.100);
list.onsets.appenditem(picture.red_circle.stimulusonset.101);
list.onsets.appenditem(picture.red_circle.stimulusonset.102);
list.onsets.appenditem(picture.red_circle.stimulusonset.103);
list.onsets.appenditem(picture.red_circle.stimulusonset.104);
list.onsets.appenditem(picture.red_circle.stimulusonset.105);
list.onsets.appenditem(picture.red_circle.stimulusonset.106);
list.onsets.appenditem(picture.red_circle.stimulusonset.107);
list.onsets.appenditem(picture.red_circle.stimulusonset.108);
list.onsets.appenditem(picture.red_circle.stimulusonset.109);
list.onsets.appenditem(picture.red_circle.stimulusonset.110);
list.onsets.appenditem(picture.red_circle.stimulusonset.111);
list.onsets.appenditem(picture.red_circle.stimulusonset.112);
list.onsets.appenditem(picture.red_circle.stimulusonset.113);
list.onsets.appenditem(picture.red_circle.stimulusonset.114);
list.onsets.appenditem(picture.red_circle.stimulusonset.115);
list.onsets.appenditem(picture.red_circle.stimulusonset.116);
list.onsets.appenditem(picture.red_circle.stimulusonset.117);
list.onsets.appenditem(picture.red_circle.stimulusonset.118);
list.onsets.appenditem(picture.red_circle.stimulusonset.119);
list.onsets.appenditem(picture.red_circle.stimulusonset.120);
list.onsets.appenditem(picture.red_circle.stimulusonset.121);
list.onsets.appenditem(picture.red_circle.stimulusonset.122);
list.onsets.appenditem(picture.red_circle.stimulusonset.123);
list.onsets.appenditem(picture.red_circle.stimulusonset.124);
list.onsets.appenditem(picture.red_circle.stimulusonset.125);
list.onsets.appenditem(picture.red_circle.stimulusonset.126);
list.onsets.appenditem(picture.red_circle.stimulusonset.127);
list.onsets.appenditem(picture.red_circle.stimulusonset.128);
list.onsets.appenditem(picture.red_circle.stimulusonset.129);
list.onsets.appenditem(picture.red_circle.stimulusonset.130);
list.onsets.appenditem(picture.red_circle.stimulusonset.131);
list.onsets.appenditem(picture.red_circle.stimulusonset.132);
list.onsets.appenditem(picture.red_circle.stimulusonset.133);
list.onsets.appenditem(picture.red_circle.stimulusonset.134);
list.onsets.appenditem(picture.red_circle.stimulusonset.135);
list.onsets.appenditem(picture.red_circle.stimulusonset.136);
list.onsets.appenditem(picture.red_circle.stimulusonset.137);
list.onsets.appenditem(picture.red_circle.stimulusonset.138);
list.onsets.appenditem(picture.red_circle.stimulusonset.139);
list.onsets.appenditem(picture.red_circle.stimulusonset.140);
list.onsets.appenditem(picture.red_circle.stimulusonset.141);
list.onsets.appenditem(picture.red_circle.stimulusonset.142);
list.onsets.appenditem(picture.red_circle.stimulusonset.143);
list.onsets.appenditem(picture.red_circle.stimulusonset.144);
list.onsets.appenditem(picture.red_circle.stimulusonset.145);
list.onsets.appenditem(picture.red_circle.stimulusonset.146);
list.onsets.appenditem(picture.red_circle.stimulusonset.147);
list.onsets.appenditem(picture.red_circle.stimulusonset.148);
list.onsets.appenditem(picture.red_circle.stimulusonset.149);
list.onsets.appenditem(picture.red_circle.stimulusonset.150);
list.onsets.appenditem(picture.red_circle.stimulusonset.151);
list.onsets.appenditem(picture.red_circle.stimulusonset.152);
list.onsets.appenditem(picture.red_circle.stimulusonset.153);
list.onsets.appenditem(picture.red_circle.stimulusonset.154);
list.onsets.appenditem(picture.red_circle.stimulusonset.155);
list.onsets.appenditem(picture.red_circle.stimulusonset.156);
list.onsets.appenditem(picture.red_circle.stimulusonset.157);
list.onsets.appenditem(picture.red_circle.stimulusonset.158);
list.onsets.appenditem(picture.red_circle.stimulusonset.159);
list.onsets.appenditem(picture.red_circle.stimulusonset.160);
list.onsets.appenditem(picture.red_circle.stimulusonset.161);
list.onsets.appenditem(picture.red_circle.stimulusonset.162);
list.onsets.appenditem(picture.red_circle.stimulusonset.163);
list.onsets.appenditem(picture.red_circle.stimulusonset.164);
list.onsets.appenditem(picture.red_circle.stimulusonset.165);
list.onsets.appenditem(picture.red_circle.stimulusonset.166);
list.onsets.appenditem(picture.red_circle.stimulusonset.167);
list.onsets.appenditem(picture.red_circle.stimulusonset.168);
list.onsets.appenditem(picture.red_circle.stimulusonset.169);
list.onsets.appenditem(picture.red_circle.stimulusonset.170);
list.onsets.appenditem(picture.red_circle.stimulusonset.171);
list.onsets.appenditem(picture.red_circle.stimulusonset.172);
list.onsets.appenditem(picture.red_circle.stimulusonset.173);
list.onsets.appenditem(picture.red_circle.stimulusonset.174);
list.onsets.appenditem(picture.red_circle.stimulusonset.175);
list.onsets.appenditem(picture.red_circle.stimulusonset.176);
list.onsets.appenditem(picture.red_circle.stimulusonset.177);

list.frequency.appenditem(60/((picture.red_circle.stimulusonset.2-picture.red_circle.stimulusonset.1)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.3-picture.red_circle.stimulusonset.2)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.4-picture.red_circle.stimulusonset.3)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.5-picture.red_circle.stimulusonset.4)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.6-picture.red_circle.stimulusonset.5)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.7-picture.red_circle.stimulusonset.6)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.8-picture.red_circle.stimulusonset.7)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.9-picture.red_circle.stimulusonset.8)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.10-picture.red_circle.stimulusonset.9)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.11-picture.red_circle.stimulusonset.10)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.12-picture.red_circle.stimulusonset.11)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.13-picture.red_circle.stimulusonset.12)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.14-picture.red_circle.stimulusonset.13)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.15-picture.red_circle.stimulusonset.14)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.16-picture.red_circle.stimulusonset.15)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.17-picture.red_circle.stimulusonset.16)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.18-picture.red_circle.stimulusonset.17)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.19-picture.red_circle.stimulusonset.18)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.20-picture.red_circle.stimulusonset.19)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.21-picture.red_circle.stimulusonset.20)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.22-picture.red_circle.stimulusonset.21)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.23-picture.red_circle.stimulusonset.22)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.24-picture.red_circle.stimulusonset.23)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.25-picture.red_circle.stimulusonset.24)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.26-picture.red_circle.stimulusonset.25)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.27-picture.red_circle.stimulusonset.26)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.28-picture.red_circle.stimulusonset.27)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.29-picture.red_circle.stimulusonset.28)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.30-picture.red_circle.stimulusonset.29)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.31-picture.red_circle.stimulusonset.30)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.32-picture.red_circle.stimulusonset.31)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.33-picture.red_circle.stimulusonset.32)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.34-picture.red_circle.stimulusonset.33)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.35-picture.red_circle.stimulusonset.34)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.36-picture.red_circle.stimulusonset.35)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.37-picture.red_circle.stimulusonset.36)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.38-picture.red_circle.stimulusonset.37)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.39-picture.red_circle.stimulusonset.38)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.40-picture.red_circle.stimulusonset.39)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.41-picture.red_circle.stimulusonset.40)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.42-picture.red_circle.stimulusonset.41)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.43-picture.red_circle.stimulusonset.42)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.44-picture.red_circle.stimulusonset.43)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.45-picture.red_circle.stimulusonset.44)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.46-picture.red_circle.stimulusonset.45)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.47-picture.red_circle.stimulusonset.46)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.48-picture.red_circle.stimulusonset.47)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.49-picture.red_circle.stimulusonset.48)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.50-picture.red_circle.stimulusonset.49)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.51-picture.red_circle.stimulusonset.50)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.52-picture.red_circle.stimulusonset.51)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.53-picture.red_circle.stimulusonset.52)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.54-picture.red_circle.stimulusonset.53)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.55-picture.red_circle.stimulusonset.54)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.56-picture.red_circle.stimulusonset.55)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.57-picture.red_circle.stimulusonset.56)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.58-picture.red_circle.stimulusonset.57)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.59-picture.red_circle.stimulusonset.58)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.60-picture.red_circle.stimulusonset.59)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.61-picture.red_circle.stimulusonset.60)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.62-picture.red_circle.stimulusonset.61)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.63-picture.red_circle.stimulusonset.62)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.64-picture.red_circle.stimulusonset.63)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.65-picture.red_circle.stimulusonset.64)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.66-picture.red_circle.stimulusonset.65)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.67-picture.red_circle.stimulusonset.66)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.68-picture.red_circle.stimulusonset.67)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.69-picture.red_circle.stimulusonset.68)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.70-picture.red_circle.stimulusonset.69)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.71-picture.red_circle.stimulusonset.70)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.72-picture.red_circle.stimulusonset.71)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.73-picture.red_circle.stimulusonset.72)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.74-picture.red_circle.stimulusonset.73)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.75-picture.red_circle.stimulusonset.74)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.76-picture.red_circle.stimulusonset.75)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.77-picture.red_circle.stimulusonset.76)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.78-picture.red_circle.stimulusonset.77)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.79-picture.red_circle.stimulusonset.78)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.80-picture.red_circle.stimulusonset.79)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.81-picture.red_circle.stimulusonset.80)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.82-picture.red_circle.stimulusonset.81)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.83-picture.red_circle.stimulusonset.82)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.84-picture.red_circle.stimulusonset.83)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.85-picture.red_circle.stimulusonset.84)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.86-picture.red_circle.stimulusonset.85)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.87-picture.red_circle.stimulusonset.86)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.88-picture.red_circle.stimulusonset.87)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.89-picture.red_circle.stimulusonset.88)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.90-picture.red_circle.stimulusonset.89)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.91-picture.red_circle.stimulusonset.90)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.92-picture.red_circle.stimulusonset.91)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.93-picture.red_circle.stimulusonset.92)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.94-picture.red_circle.stimulusonset.93)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.95-picture.red_circle.stimulusonset.94)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.96-picture.red_circle.stimulusonset.95)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.97-picture.red_circle.stimulusonset.96)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.98-picture.red_circle.stimulusonset.97)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.99-picture.red_circle.stimulusonset.98)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.100-picture.red_circle.stimulusonset.99)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.101-picture.red_circle.stimulusonset.100)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.102-picture.red_circle.stimulusonset.101)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.103-picture.red_circle.stimulusonset.102)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.104-picture.red_circle.stimulusonset.103)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.105-picture.red_circle.stimulusonset.104)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.106-picture.red_circle.stimulusonset.105)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.107-picture.red_circle.stimulusonset.106)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.108-picture.red_circle.stimulusonset.107)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.109-picture.red_circle.stimulusonset.108)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.110-picture.red_circle.stimulusonset.109)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.111-picture.red_circle.stimulusonset.110)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.112-picture.red_circle.stimulusonset.111)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.113-picture.red_circle.stimulusonset.112)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.114-picture.red_circle.stimulusonset.113)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.115-picture.red_circle.stimulusonset.114)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.116-picture.red_circle.stimulusonset.115)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.117-picture.red_circle.stimulusonset.116)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.118-picture.red_circle.stimulusonset.117)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.119-picture.red_circle.stimulusonset.118)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.120-picture.red_circle.stimulusonset.119)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.121-picture.red_circle.stimulusonset.120)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.122-picture.red_circle.stimulusonset.121)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.123-picture.red_circle.stimulusonset.122)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.124-picture.red_circle.stimulusonset.123)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.125-picture.red_circle.stimulusonset.124)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.126-picture.red_circle.stimulusonset.125)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.127-picture.red_circle.stimulusonset.126)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.128-picture.red_circle.stimulusonset.127)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.129-picture.red_circle.stimulusonset.128)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.130-picture.red_circle.stimulusonset.129)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.131-picture.red_circle.stimulusonset.130)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.132-picture.red_circle.stimulusonset.131)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.133-picture.red_circle.stimulusonset.132)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.134-picture.red_circle.stimulusonset.133)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.135-picture.red_circle.stimulusonset.134)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.136-picture.red_circle.stimulusonset.135)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.137-picture.red_circle.stimulusonset.136)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.138-picture.red_circle.stimulusonset.137)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.139-picture.red_circle.stimulusonset.138)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.140-picture.red_circle.stimulusonset.139)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.141-picture.red_circle.stimulusonset.140)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.142-picture.red_circle.stimulusonset.141)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.143-picture.red_circle.stimulusonset.142)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.144-picture.red_circle.stimulusonset.143)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.145-picture.red_circle.stimulusonset.144)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.146-picture.red_circle.stimulusonset.145)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.147-picture.red_circle.stimulusonset.146)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.148-picture.red_circle.stimulusonset.147)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.149-picture.red_circle.stimulusonset.148)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.150-picture.red_circle.stimulusonset.149)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.151-picture.red_circle.stimulusonset.150)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.152-picture.red_circle.stimulusonset.151)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.153-picture.red_circle.stimulusonset.152)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.154-picture.red_circle.stimulusonset.153)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.155-picture.red_circle.stimulusonset.154)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.156-picture.red_circle.stimulusonset.155)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.157-picture.red_circle.stimulusonset.156)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.158-picture.red_circle.stimulusonset.157)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.159-picture.red_circle.stimulusonset.158)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.160-picture.red_circle.stimulusonset.159)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.161-picture.red_circle.stimulusonset.160)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.162-picture.red_circle.stimulusonset.161)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.163-picture.red_circle.stimulusonset.162)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.164-picture.red_circle.stimulusonset.163)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.165-picture.red_circle.stimulusonset.164)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.166-picture.red_circle.stimulusonset.165)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.167-picture.red_circle.stimulusonset.166)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.168-picture.red_circle.stimulusonset.167)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.169-picture.red_circle.stimulusonset.168)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.170-picture.red_circle.stimulusonset.169)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.171-picture.red_circle.stimulusonset.170)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.172-picture.red_circle.stimulusonset.171)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.173-picture.red_circle.stimulusonset.172)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.174-picture.red_circle.stimulusonset.173)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.175-picture.red_circle.stimulusonset.174)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.176-picture.red_circle.stimulusonset.175)/1000));
list.frequency.appenditem(60/((picture.red_circle.stimulusonset.177-picture.red_circle.stimulusonset.176)/1000));
list.frequency.appenditem((list.frequency.mean));

]
/ branch = [
trial.construct_bucket;
]
</trial>

<list latencies>
/ select = sequence
</list>

<list onsets>
/ select = sequence
</list>

<list acc>
</list>

<list frequency>
/select=sequence
</list>


<values>
/ current_onset = 0
/ current_min = 0
/ current_max = 0
/ current_latency = ""
/ bucketcount = 0
/ latencycount = 0
/ sum_acc_latencies = 0
/ sum_counted = 0
/ bucket_hit = 0
</values>


<trial construct_bucket>
/ ontrialbegin = [
values.bucketcount += 1;
values.bucket_hit = 0;
values.sum_counted = 0;
values.latencycount = 0;
values.current_onset = list.onsets.nextvalue;
values.current_frequency = list.frequency.nextvalue;
values.freq = concat(concat(values.freq, values.current_frequency),",");
if (values.current_frequency < 69.76) {values.current_min = values.current_onset - 125; values.current_max = values.current_onset + 750;};
else if (values.current_frequency > 69.76 && values.current_frequency < 94.25) {values.current_min = values.current_onset - 100; values.current_max = values.current_onset + 600;};
values.min = concat(concat(values.min,values.current_min),",");
values.max = concat(concat(values.max,values.current_max),",");]
/ stimulusframes = [1=clearscreen, debug]
/ branch = [
trial.check_latencies;
]
/ trialduration = 0
/ recorddata = false
</trial>

<trial check_latencies>
/ ontrialbegin = [
values.latencycount += 1;
values.current_latency = list.latencies.nextvalue;
if (values.current_latency >= values.current_min && values.current_latency <= values.current_max){values.sum_counted += 1; values.corrlat = concat(concat(values.corrlat, values.current_latency),",");};
 if(values.current_latency >= values.current_min && values.current_latency <= values.current_max && values.current_frequency < 69.76){values.sum_acc_69 += 1;};
  if(values.current_latency >= values.current_min && values.current_latency <= values.current_max && values.current_frequency > 69.76 && values.current_frequency < 94.25){values.sum_acc_betw += 1;};
if (values.sum_counted >=1) {values.bucket_hit = 1} else {
  values.bucket_hit = 0;
};
]
/ stimulusframes = [1=clearscreen, debug]
/ branch = [
if (values.latencycount < list.latencies.itemcount) {
 trial.check_latencies;
} else if (values.bucketcount < list.onsets.itemcount) {
 values.sum_acc_latencies += values.bucket_hit;
 trial.construct_bucket;
} else {
 values.sum_acc_latencies += values.bucket_hit;
 trial.score_result;
}
]
/ trialduration = 0
/ recorddata = false
</trial>

<trial score_result>
/ ontrialbegin = [
values.accuracy = 1-(abs(list.onsets.itemcount-values.sum_acc_latencies)/list.onsets.itemcount)]
/ stimulusframes = [1=clearscreen, debug]
/ validresponse = (57)
</trial>

<text debug>
/ fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1)
/ items = ("Grazie per aver concluso l'esperimento!
Lascia che il computer concluda i calcoli e,
quando il livello di accuratezza (Final Accuracy) e' stato calcolato,
premi la barra spaziatrice per chiudere Inquisit.

Bucket <%values.bucketcount%> of <%list.onsets.itemcount%>
Latency <%values.latencycount%> of <%list.latencies.itemcount%>
Onset: <%values.current_onset%>| Min Latency: <%values.current_min%> | Max Latency: <%values.current_max%>
Current Latency: <%values.current_latency%>
Latencies in Bucket: <%values.sum_counted%>
Bucket Hit: <%values.bucket_hit%>
Accurate Latencies: <%values.sum_acc_latencies%> of <%list.latencies.itemcount%>
Final Accuracy: <%values.accuracy%>%")
/ erase = false
/ size = (60%, 40%)
</text>


<block prepre>
/ trials = [1=60hz; 2=instructions1; 3=instructions2]
</block>

<block pre>
/ trials = [1=fixate; 2=blank]
</block>

<block acc>
/ trials = [1=acc]
</block>

<expt >
/blocks=[
1=prepre;2=pre;3=acc;
]
</expt>

<data>
/ columns = [date,time,group,subject, display.refreshrate, values.min, values.corrlat, values.max, values.sum_counted, values.sum_acc_69, values.sum_acc_betw, values.freq, display.canvaswidth, display.canvasheight, trialduration, values.sum_acc_latencies, values.accuracy, values.timeofresponse,values.spacebarpresscount,
    
picture.black_circle.stimulusonset.1,    
picture.black_circle.stimulusonset.2,    
picture.black_circle.stimulusonset.3,    
picture.black_circle.stimulusonset.4,    
picture.black_circle.stimulusonset.5,    
picture.black_circle.stimulusonset.6,    
picture.black_circle.stimulusonset.7,    
picture.black_circle.stimulusonset.8,    
picture.black_circle.stimulusonset.9,    
picture.black_circle.stimulusonset.10,    
picture.black_circle.stimulusonset.11,    
picture.black_circle.stimulusonset.12,    
picture.black_circle.stimulusonset.13,    
picture.black_circle.stimulusonset.14,    
picture.black_circle.stimulusonset.15,    
picture.black_circle.stimulusonset.16,    
picture.black_circle.stimulusonset.17,    
picture.black_circle.stimulusonset.18,    
picture.black_circle.stimulusonset.19,    
picture.black_circle.stimulusonset.20,    
picture.black_circle.stimulusonset.21,    
picture.black_circle.stimulusonset.22,    
picture.black_circle.stimulusonset.23,    
picture.black_circle.stimulusonset.24,    
picture.black_circle.stimulusonset.25,    
picture.black_circle.stimulusonset.26,    
picture.black_circle.stimulusonset.27,    
picture.black_circle.stimulusonset.28,    
picture.black_circle.stimulusonset.29,    
picture.black_circle.stimulusonset.30,    
picture.black_circle.stimulusonset.31,    
picture.black_circle.stimulusonset.32,    
picture.black_circle.stimulusonset.33,    
picture.black_circle.stimulusonset.34,    
picture.black_circle.stimulusonset.35,    
picture.black_circle.stimulusonset.36,    
picture.black_circle.stimulusonset.37,    
picture.black_circle.stimulusonset.38,    
picture.black_circle.stimulusonset.39,    
picture.black_circle.stimulusonset.40,    
picture.black_circle.stimulusonset.41,    
picture.black_circle.stimulusonset.42,    
picture.black_circle.stimulusonset.43,    
picture.black_circle.stimulusonset.44,    
picture.black_circle.stimulusonset.45,    
picture.black_circle.stimulusonset.46,    
picture.black_circle.stimulusonset.47,    
picture.black_circle.stimulusonset.48,    
picture.black_circle.stimulusonset.49,    
picture.black_circle.stimulusonset.50,    
picture.black_circle.stimulusonset.51,    
picture.black_circle.stimulusonset.52,    
picture.black_circle.stimulusonset.53,    
picture.black_circle.stimulusonset.54,    
picture.black_circle.stimulusonset.55,    
picture.black_circle.stimulusonset.56,    
picture.black_circle.stimulusonset.57,    
picture.black_circle.stimulusonset.58,    
picture.black_circle.stimulusonset.59,    
picture.black_circle.stimulusonset.60,    
picture.black_circle.stimulusonset.61,    
picture.black_circle.stimulusonset.62,    
picture.black_circle.stimulusonset.63,    
picture.black_circle.stimulusonset.64,    
picture.black_circle.stimulusonset.65,    
picture.black_circle.stimulusonset.66,    
picture.black_circle.stimulusonset.67,    
picture.black_circle.stimulusonset.68,    
picture.black_circle.stimulusonset.69,    
picture.black_circle.stimulusonset.70,    
picture.black_circle.stimulusonset.71,    
picture.black_circle.stimulusonset.72,    
picture.black_circle.stimulusonset.73,    
picture.black_circle.stimulusonset.74,    
picture.black_circle.stimulusonset.75,    
picture.black_circle.stimulusonset.76,    
picture.black_circle.stimulusonset.77,    
picture.black_circle.stimulusonset.78,    
picture.black_circle.stimulusonset.79,    
picture.black_circle.stimulusonset.80,    
picture.black_circle.stimulusonset.81,    
picture.black_circle.stimulusonset.82,    
picture.black_circle.stimulusonset.83,    
picture.black_circle.stimulusonset.84,    
picture.black_circle.stimulusonset.85,    
picture.black_circle.stimulusonset.86,    
picture.black_circle.stimulusonset.87,    
picture.black_circle.stimulusonset.88,    
picture.black_circle.stimulusonset.89,    
picture.black_circle.stimulusonset.90,    
picture.black_circle.stimulusonset.91,    
picture.black_circle.stimulusonset.92,    
picture.black_circle.stimulusonset.93,    
picture.black_circle.stimulusonset.94,    
picture.black_circle.stimulusonset.95,    
picture.black_circle.stimulusonset.96,    
picture.black_circle.stimulusonset.97,    
picture.black_circle.stimulusonset.98,    
picture.black_circle.stimulusonset.99,    
picture.black_circle.stimulusonset.100,    
picture.black_circle.stimulusonset.101,    
picture.black_circle.stimulusonset.102,    
picture.black_circle.stimulusonset.103,    
picture.black_circle.stimulusonset.104,    
picture.black_circle.stimulusonset.105,    
picture.black_circle.stimulusonset.106,    
picture.black_circle.stimulusonset.107,    
picture.black_circle.stimulusonset.108,    
picture.black_circle.stimulusonset.109,    
picture.black_circle.stimulusonset.110,    
picture.black_circle.stimulusonset.111,    
picture.black_circle.stimulusonset.112,    
picture.black_circle.stimulusonset.113,    
picture.black_circle.stimulusonset.114,    
picture.black_circle.stimulusonset.115,    
picture.black_circle.stimulusonset.116,    
picture.black_circle.stimulusonset.117,    
picture.black_circle.stimulusonset.118,    
picture.black_circle.stimulusonset.119,    
picture.black_circle.stimulusonset.120,    
picture.black_circle.stimulusonset.121,    
picture.black_circle.stimulusonset.122,    
picture.black_circle.stimulusonset.123,    
picture.black_circle.stimulusonset.124,    
picture.black_circle.stimulusonset.125,    
picture.black_circle.stimulusonset.126,    
picture.black_circle.stimulusonset.127,    
picture.black_circle.stimulusonset.128,    
picture.black_circle.stimulusonset.129,    
picture.black_circle.stimulusonset.130,    
picture.black_circle.stimulusonset.131,    
picture.black_circle.stimulusonset.132,    
picture.black_circle.stimulusonset.133,    
picture.black_circle.stimulusonset.134,    
picture.black_circle.stimulusonset.135,    
picture.black_circle.stimulusonset.136,    
picture.black_circle.stimulusonset.137,    
picture.black_circle.stimulusonset.138,    
picture.black_circle.stimulusonset.139,    
picture.black_circle.stimulusonset.140,    
picture.black_circle.stimulusonset.141,    
picture.black_circle.stimulusonset.142,    
picture.black_circle.stimulusonset.143,    
picture.black_circle.stimulusonset.144,    
picture.black_circle.stimulusonset.145,    
picture.black_circle.stimulusonset.146,    
picture.black_circle.stimulusonset.147,    
picture.black_circle.stimulusonset.148,    
picture.black_circle.stimulusonset.149,    
picture.black_circle.stimulusonset.150,    
picture.black_circle.stimulusonset.151,    
picture.black_circle.stimulusonset.152,    
picture.black_circle.stimulusonset.153,    
picture.black_circle.stimulusonset.154,    
picture.black_circle.stimulusonset.155,    
picture.black_circle.stimulusonset.156,    
picture.black_circle.stimulusonset.157,    
picture.black_circle.stimulusonset.158,    
picture.black_circle.stimulusonset.159,    
picture.black_circle.stimulusonset.160,    
picture.black_circle.stimulusonset.161,    
picture.black_circle.stimulusonset.162,    
picture.black_circle.stimulusonset.163,    
picture.black_circle.stimulusonset.164,    
picture.black_circle.stimulusonset.165,    
picture.black_circle.stimulusonset.166,    
picture.black_circle.stimulusonset.167,    
picture.black_circle.stimulusonset.168,    
picture.black_circle.stimulusonset.169,    
picture.black_circle.stimulusonset.170,    
picture.black_circle.stimulusonset.171,    
picture.black_circle.stimulusonset.172,    
picture.black_circle.stimulusonset.173,    
picture.black_circle.stimulusonset.174,    
picture.black_circle.stimulusonset.175,    
picture.black_circle.stimulusonset.176,    
picture.black_circle.stimulusonset.177,    



picture.red_circle.stimulusonset.1,
picture.red_circle.stimulusonset.2,
picture.red_circle.stimulusonset.3,
picture.red_circle.stimulusonset.4,
picture.red_circle.stimulusonset.5,
picture.red_circle.stimulusonset.6,
picture.red_circle.stimulusonset.7,
picture.red_circle.stimulusonset.8,
picture.red_circle.stimulusonset.9,
picture.red_circle.stimulusonset.10,
picture.red_circle.stimulusonset.11,
picture.red_circle.stimulusonset.12,
picture.red_circle.stimulusonset.13,
picture.red_circle.stimulusonset.14,
picture.red_circle.stimulusonset.15,
picture.red_circle.stimulusonset.16,
picture.red_circle.stimulusonset.17,
picture.red_circle.stimulusonset.18,
picture.red_circle.stimulusonset.19,
picture.red_circle.stimulusonset.20,
picture.red_circle.stimulusonset.21,
picture.red_circle.stimulusonset.22,
picture.red_circle.stimulusonset.23,
picture.red_circle.stimulusonset.24,
picture.red_circle.stimulusonset.25,
picture.red_circle.stimulusonset.26,
picture.red_circle.stimulusonset.27,
picture.red_circle.stimulusonset.28,
picture.red_circle.stimulusonset.29,
picture.red_circle.stimulusonset.30,
picture.red_circle.stimulusonset.31,
picture.red_circle.stimulusonset.32,
picture.red_circle.stimulusonset.33,
picture.red_circle.stimulusonset.34,
picture.red_circle.stimulusonset.35,
picture.red_circle.stimulusonset.36,
picture.red_circle.stimulusonset.37,
picture.red_circle.stimulusonset.38,
picture.red_circle.stimulusonset.39,
picture.red_circle.stimulusonset.40,
picture.red_circle.stimulusonset.41,
picture.red_circle.stimulusonset.42,
picture.red_circle.stimulusonset.43,
picture.red_circle.stimulusonset.44,
picture.red_circle.stimulusonset.45,
picture.red_circle.stimulusonset.46,
picture.red_circle.stimulusonset.47,
picture.red_circle.stimulusonset.48,
picture.red_circle.stimulusonset.49,
picture.red_circle.stimulusonset.50,
picture.red_circle.stimulusonset.51,
picture.red_circle.stimulusonset.52,
picture.red_circle.stimulusonset.53,
picture.red_circle.stimulusonset.54,
picture.red_circle.stimulusonset.55,
picture.red_circle.stimulusonset.56,
picture.red_circle.stimulusonset.57,
picture.red_circle.stimulusonset.58,
picture.red_circle.stimulusonset.59,
picture.red_circle.stimulusonset.60,
picture.red_circle.stimulusonset.61,
picture.red_circle.stimulusonset.62,
picture.red_circle.stimulusonset.63,
picture.red_circle.stimulusonset.64,
picture.red_circle.stimulusonset.65,
picture.red_circle.stimulusonset.66,
picture.red_circle.stimulusonset.67,
picture.red_circle.stimulusonset.68,
picture.red_circle.stimulusonset.69,
picture.red_circle.stimulusonset.70,
picture.red_circle.stimulusonset.71,
picture.red_circle.stimulusonset.72,
picture.red_circle.stimulusonset.73,
picture.red_circle.stimulusonset.74,
picture.red_circle.stimulusonset.75,
picture.red_circle.stimulusonset.76,
picture.red_circle.stimulusonset.77,
picture.red_circle.stimulusonset.78,
picture.red_circle.stimulusonset.79,
picture.red_circle.stimulusonset.80,
picture.red_circle.stimulusonset.81,
picture.red_circle.stimulusonset.82,
picture.red_circle.stimulusonset.83,
picture.red_circle.stimulusonset.84,
picture.red_circle.stimulusonset.85,
picture.red_circle.stimulusonset.86,
picture.red_circle.stimulusonset.87,
picture.red_circle.stimulusonset.88,
picture.red_circle.stimulusonset.89,
picture.red_circle.stimulusonset.90,
picture.red_circle.stimulusonset.91,
picture.red_circle.stimulusonset.92,
picture.red_circle.stimulusonset.93,
picture.red_circle.stimulusonset.94,
picture.red_circle.stimulusonset.95,
picture.red_circle.stimulusonset.96,
picture.red_circle.stimulusonset.97,
picture.red_circle.stimulusonset.98,
picture.red_circle.stimulusonset.99,
picture.red_circle.stimulusonset.100,
picture.red_circle.stimulusonset.101,
picture.red_circle.stimulusonset.102,
picture.red_circle.stimulusonset.103,
picture.red_circle.stimulusonset.104,
picture.red_circle.stimulusonset.105,
picture.red_circle.stimulusonset.106,
picture.red_circle.stimulusonset.107,
picture.red_circle.stimulusonset.108,
picture.red_circle.stimulusonset.109,
picture.red_circle.stimulusonset.110,
picture.red_circle.stimulusonset.111,
picture.red_circle.stimulusonset.112,
picture.red_circle.stimulusonset.113,
picture.red_circle.stimulusonset.114,
picture.red_circle.stimulusonset.115,
picture.red_circle.stimulusonset.116,
picture.red_circle.stimulusonset.117,
picture.red_circle.stimulusonset.118,
picture.red_circle.stimulusonset.119,
picture.red_circle.stimulusonset.120,
picture.red_circle.stimulusonset.121,
picture.red_circle.stimulusonset.122,
picture.red_circle.stimulusonset.123,
picture.red_circle.stimulusonset.124,
picture.red_circle.stimulusonset.125,
picture.red_circle.stimulusonset.126,
picture.red_circle.stimulusonset.127,
picture.red_circle.stimulusonset.128,
picture.red_circle.stimulusonset.129,
picture.red_circle.stimulusonset.130,
picture.red_circle.stimulusonset.131,
picture.red_circle.stimulusonset.132,
picture.red_circle.stimulusonset.133,
picture.red_circle.stimulusonset.134,
picture.red_circle.stimulusonset.135,
picture.red_circle.stimulusonset.136,
picture.red_circle.stimulusonset.137,
picture.red_circle.stimulusonset.138,
picture.red_circle.stimulusonset.139,
picture.red_circle.stimulusonset.140,
picture.red_circle.stimulusonset.141,
picture.red_circle.stimulusonset.142,
picture.red_circle.stimulusonset.143,
picture.red_circle.stimulusonset.144,
picture.red_circle.stimulusonset.145,
picture.red_circle.stimulusonset.146,
picture.red_circle.stimulusonset.147,
picture.red_circle.stimulusonset.148,
picture.red_circle.stimulusonset.149,
picture.red_circle.stimulusonset.150,
picture.red_circle.stimulusonset.151,
picture.red_circle.stimulusonset.152,
picture.red_circle.stimulusonset.153,
picture.red_circle.stimulusonset.154,
picture.red_circle.stimulusonset.155,
picture.red_circle.stimulusonset.156,
picture.red_circle.stimulusonset.157,
picture.red_circle.stimulusonset.158,
picture.red_circle.stimulusonset.159,
picture.red_circle.stimulusonset.160,
picture.red_circle.stimulusonset.161,
picture.red_circle.stimulusonset.162,
picture.red_circle.stimulusonset.163,
picture.red_circle.stimulusonset.164,
picture.red_circle.stimulusonset.165,
picture.red_circle.stimulusonset.166,
picture.red_circle.stimulusonset.167,
picture.red_circle.stimulusonset.168,
picture.red_circle.stimulusonset.169,
picture.red_circle.stimulusonset.170,
picture.red_circle.stimulusonset.171,
picture.red_circle.stimulusonset.172,
picture.red_circle.stimulusonset.173,
picture.red_circle.stimulusonset.174,
picture.red_circle.stimulusonset.175,
picture.red_circle.stimulusonset.176,
picture.red_circle.stimulusonset.177,
]
</data>

<defaults>
/ screencolor = (195,195,195)
/ txbgcolor = (195,195,195)
/ txcolor = white
</defaults>

if () else if () constructs ought to NOT have a separator (;) between them.

Your logic also does not cover the case where frequency is exactly 69.76, you only cover the cases where it's either smaller or larger.

Thank you so much, Dave! It works now !!!
Eleonora
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search