Repository navigation
Expand file tree
/
Copy pathconstants.js
More file actions
80 lines (65 loc) · 2.39 KB
/
Copy pathconstants.js
File metadata and controls
80 lines (65 loc) · 2.39 KB
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
// constants.js
//PPPP AAAAA Y Y TTTTTT OOOO N N
//P P A A Y Y TT O O NN N
//PPPP AAAAA Y TT O O N N N
//P A A Y TT O O N NN
//P A A Y TT OOOO N N
// Notes:
// Toggles, Debugging Settings and Defaults for Experiment modules
// Which sections to include in the experiment
const INCLUDE = {
instructions: true, //
vviq: true, //
brockmole: true //
};
// Debug skips (toggle true/false for debugging, true means "is skipped" false means "not skipped"<3)
const DEBUG_SKIP = {
instructions: true,
vviq: true,
brockmole: false
};
// Default parameters for the Grid Integration Brockmole task
const BROCKMOLE_DEFAULTS = {
gridSize: 4, // number of squares in the grid
cellSize: 171, // original 171
dotSize: 143, // original 143
firstGridDuration: 100,
secondGridDuration: 100,
ISI: 500, // default ISI in ms (used when override is off)
// --- ISI-by-block override ---
ISI_OVERRIDE: {
enabled: true, // toggle override on/off
values: [200, 800], // ISIs to use (ms)
order: "in_order", // "in_order" or "random"
// if numBlocks > values.length:
// - "in_order" cycles through values
// - "random" reshuffles and cycles
},
// Optional Mask Controls
firstGridMask: false,
secondGridMask: false,
// brief blank grid inserted immediately before the mask (helps avoid "filling-in" percept)
blankBeforeMaskDuration: 200, // ms (set to 0 to disable)
maskDuration: 50, // ms
// Main Experiment Trials: Original Brockmole was 384 trials in 8 blocks (48 per block)
numTrials: 8, // total number of trials across all blocks
numBlocks: 2, // total umber of blocks
// Main task: NO feedback in original
giveTrialFeedback: false,
giveBlockFeedback: false
};
// Practice settings (for Instructions.js)
// Side-by-side practice: two grids shown at once, unlimited time, click directly on grids
const PRACTICE_SIDE_BY_SIDE = {
numTrials: 3
};
// Sequential practice: real-timing version of task (same flow as main task w/ feedback),
//Original Brockmole was 25 trials in 5 blocks,
const PRACTICE_SEQUENTIAL = {
numTrials: 25,
numBlocks: 5,
// Practice Setting and Feedback
isPractice: true,
giveTrialFeedback: true,
giveBlockFeedback: true
};