-
Notifications
You must be signed in to change notification settings - Fork 0
/
Faces-task_instruction.sce
180 lines (154 loc) · 5.51 KB
/
Faces-task_instruction.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
############## Slide show for instructions #################################
# Subject can switch forward and backward through the instruction slides
# After Trial 9 there is an example experiment
#################### Information on settings and files #####################
# Three buttons need to be defined: button 1 = left, label = "yes"; button 2 = right, label = "no"; button 3 = bottom button on pad (requires no label)
# Make a subdirectory in the stimuli directory called "instruction"
# Make instruction slides ("slide1.png", "slide2.png",...), put them into the instruction-folder and change variables "$nr_slides" (sce-part) and "nr_of_instructionslides" (pcl-part; see below) according to nr of slides
# Put demo-pictures ("demopic1_negative.jpg", "demopic2_negative.jpg", demopic3_negative.jpg"; same for scrambled) to the instruction-folder
############################################################################
default_background_color = 75,75,75;
default_text_color = 255,255,255;
default_text_align = align_center;
default_font = "Arial";
default_font_size = 0.8; # with definition of screen parameters, font size is relative to user defined units
screen_width_distance = 40;
screen_height_distance = 11;
max_y = 5.5;
active_buttons = 2;
button_codes = 1,2;
default_all_responses = true;
response_matching = simple_matching;
$nr_slides = 2 ; # Total number of instruction slides
begin;
array {
LOOP $pic_nr '$nr_slides';
$pic = '$pic_nr + 1';
bitmap { filename = "instruction\\faces_slide$pic.jpg"; preload = true;
height = 10;
scale_factor = scale_to_height;
};
ENDLOOP;
} slide_array;
trial {
trial_type = first_response;
picture { bitmap { filename = "instruction\\faces_slide1.jpg";
height = 10;
scale_factor = scale_to_height;
}; x=0; y=0;
} slide_pic;
time = 0;
duration = response;
} slide_trial;
trial {
trial_type = fixed;
all_responses = true;
stimulus_event {
picture { bitmap { filename = "instruction\\demopic1_faces.jpg";
height = 10;
scale_factor = scale_to_height;
}; x = 0; y = 0;
};
time = 0;
duration = next_picture;
stimulus_time_in = 0;
stimulus_time_out = 6000;
target_button = "male"; # "male"/"female"; indicate whether there is a male or female on demopic1
};
stimulus_event {
picture { bitmap { filename = "instruction\\demopic2_faces.jpg";
height = 10;
scale_factor = scale_to_height;
}; x = 0; y = 0;
};
deltat = 6000;
duration = next_picture;
stimulus_time_in = 0;
stimulus_time_out = 6000;
target_button = "female"; # "male"/"female"; indicate whether there is a male or female on demopic2
};
stimulus_event {
picture { bitmap { filename = "instruction\\demopic3_faces.jpg";
height = 10;
scale_factor = scale_to_height;
}; x = 0; y = 0;
};
deltat = 6000;
duration = 6000;
stimulus_time_in = 0;
stimulus_time_out = 6000;
target_button = "male"; # "male"/"female"; indicate whether there is a male or female on demopic3
};
} test_trial_negative;
trial {
trial_type = fixed;
all_responses = true;
stimulus_event {
picture { bitmap { filename = "instruction\\scrambled1_faces.jpg";
height = 10;
scale_factor = scale_to_height;
}; x = 0; y = 0;
};
time = 0;
duration = next_picture;
stimulus_time_in = 0;
stimulus_time_out = 6000;
target_button = "male";
};
stimulus_event {
picture { bitmap { filename = "instruction\\scrambled2_faces.jpg";
height = 10;
scale_factor = scale_to_height;
}; x = 0; y = 0;
};
deltat = 6000;
duration = next_picture;
stimulus_time_in = 0;
stimulus_time_out = 6000;
target_button = "male";
};
stimulus_event {
picture { bitmap { filename = "instruction\\scrambled3_faces.jpg";
height = 10;
scale_factor = scale_to_height;
}; x = 0; y = 0;
};
deltat = 6000;
duration = 6000;
stimulus_time_in = 0;
stimulus_time_out = 6000;
target_button = "female";
};
} test_trial_scrambled;
text { caption = "+"; description = "5"; } plus;
trial {
trial_type = fixed;
picture { text plus; x=0; y=0; };
} rest;
begin_pcl;
int slide_nr=1;
int nr_of_instructionslides=2; # Enter here number of slides; you may specify an additional final slide shown after the example experiment (see below). If this is the case, indicate here number of last slice to be shown before example experiment
int goforwardorbackward;
loop until slide_nr>nr_of_instructionslides begin
slide_pic.set_part(1,slide_array[slide_nr]);
goforwardorbackward=0;
slide_trial.present();
if response_manager.last_response()==2 then
goforwardorbackward=-1;
elseif response_manager.last_response()==1 then
goforwardorbackward=1;
end;
if (slide_nr==1 && goforwardorbackward==-1) || slide_nr>nr_of_instructionslides then
else
slide_nr=slide_nr+goforwardorbackward;
end;
end;
rest.set_duration(2000);
rest.present();
test_trial_negative.present();
term.print("hits: "+string(response_manager.hits())+", misses: "+string(response_manager.misses())+"\n");
rest.set_duration(10000);
test_trial_scrambled.present();
term.print("hits: "+string(response_manager.hits())+", misses: "+string(response_manager.misses())+"\n");
#instr_pic.set_part(1,instr_array[slide_nr]); # Comment out to present final slide after example experiment
#instr_trial.present();