-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharm_on_input_simple_series.sce
76 lines (59 loc) · 2.05 KB
/
arm_on_input_simple_series.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
default_font_size = 48;
#log_key_presses = true;
response_matching = simple_matching;
active_buttons = 5;
button_codes = 1, 2, 0, 11, 22;
begin;
TEMPLATE "words.tem";
TEMPLATE "semantic_block.tem";
/*
TEMPLATE "syntax_block.tem" {
caption_1 caption_2 caption_3 caption_4;
"хватает" "трогает" "гладит" "пишет";
}; */
trial {
trial_duration = forever;
trial_type = specific_response;
terminator_button = 3;
picture {
text {
caption = "Ready";
};
x = 0; y = 0;
};
} start_trial;
begin_pcl;
sub semantic_block(string caption_1, string caption_2, string caption_3, string caption_4)
begin
#current_semantic_block.caption_1_pic.
caption_1_text.set_caption(caption_1);
#caption_1_text.load();
caption_1_text.redraw();
show_caption_1.set_event_code(caption_1);
#current_semantic_block.caption_2_pic.
caption_2_text.set_caption(caption_2);
caption_2_text.redraw();
show_caption_2.set_event_code(caption_2);
#current_semantic_block.caption_3_pic.
caption_3_text.set_caption(caption_3);
caption_3_text.redraw();
show_caption_3.set_event_code(caption_3);
#current_semantic_block.caption_4_pic.
caption_4_text.set_caption(caption_4);
caption_4_text.redraw();
show_caption_4.set_event_code(caption_4);
sound_response_recording_event.set_base_filename("C:/Documents and Settings/Admin/Рабочий стол/Experiments/Nastia PhD/recorded_responces/"+
logfile.subject()+"/response");
start_trial.present();
current_semantic_block.present();
end;
#semantic_block("хватает", "трогает", "гладит", "пишет", "Серия с нажатиями кнопок руками");
intro_text.set_caption("Серия с нажатиями кнопок руками\nПростая\nНажимать во время предъявления");
intro_text.redraw();
show_intro_title_trial.present();
int i = 1;
loop until i >= word_array.count()
begin
semantic_block(word_array[i].caption(), word_array[i+1].caption(), word_array[i+2].caption(), word_array[i+3].caption());
i = i + 4;
end;