-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaudlexdec_ap.zp
93 lines (69 loc) · 1.8 KB
/
audlexdec_ap.zp
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
/******************************************************************************\
FILE: audlexdec_ap.zp
EXPERIMENT: Auditory Lexical Decision with Auditory Priming
AUTHOR: Theo Veenker <[email protected]>
ADAPTED BY: -
Global structure of experiment:
- welcome
- phase 1 (see subfolder test)
- thankyou
HISTORY:
2013-07-03 TV Created.
2017-01-09 TV Adapted for Zep 2.0.
\******************************************************************************/
requires 2.6;
import std_windows1;
import std_texts_en;
import std_entry_page1;
import std_exit_page1;
import std_pause_page;
import std_blank_page;
import io_beexybox; // Enable to use BeexyBox response box.
import test::task;
import test::stimuli;
// Experiment version. In piloting stage and later increment this on each
// relevant change.
const int EXPERIMENT_VERSION = 1;
Experiment experiment
{
on_event:entry()
{
show_test_windows();
if (test::load_stimuli() != OK) {
terminate "unable to load stimuli";
}
}
on_event:message()
{
// On Ctrl+F4 jump unconditionally to the thank-you part.
if (message_sender == control && message_arg == SYS_STOP)
{
control.mark_experiment_aborted();
thankyou.enter();
}
}
Part welcome
{
on_event:entry()
{
entry_page.set_text(WELCOME_TEXT);
entry_page.action(this, 0s);
}
}
Part phase1
{
on_event:entry()
{
test::action(this);
}
}
Part thankyou
{
on_event:entry()
{
control.end_experiment(); // Check-in session.
exit_page.set_text(THANK_YOU_TEXT);
exit_page.action(this, 10s);
}
}
}