|
1 | 1 | # CPP_PTB documentation |
2 | 2 |
|
3 | 3 | <!-- vscode-markdown-toc --> |
4 | | -* 1. [the CFG gtructure](#theCFGgtructure) |
| 4 | +* 1. [the CFG structure](#theCFGstructure) |
5 | 5 | * 2. [Setting up keyboards](#Settingupkeyboards) |
6 | 6 | * 3. [functions descriptions](#functionsdescriptions) |
7 | 7 | * 4. [Annexes](#Annexes) |
|
14 | 14 | /vscode-markdown-toc-config --> |
15 | 15 | <!-- /vscode-markdown-toc --> |
16 | 16 |
|
17 | | -## 1. <a name='theCFGgtructure'></a>the CFG gtructure |
| 17 | +## 1. <a name='theCFGstructure'></a>the CFG structure |
18 | 18 |
|
19 | 19 | The `cfg` structure is where most of the information about your experiment will be defined. |
20 | 20 |
|
@@ -48,12 +48,12 @@ cfg.debug.smallWin = true; % open a small window and not a full screen window ; |
48 | 48 | % cfg.text |
49 | 49 | cfg.text.font = 'Courier New'; |
50 | 50 | cfg.text.size = 18; |
51 | | -cfg.text.style = 1; ??? |
| 51 | +cfg.text.style = 1; % bold |
52 | 52 |
|
53 | 53 |
|
54 | 54 | %% -------------------------------------------------------------------------- %% |
55 | 55 | % cfg.color |
56 | | -cfg.color.background % [r g b] each in 0-255 |
| 56 | +cfg.color.background = [0 0 0]; % [r g b] each in 0-255 |
57 | 57 |
|
58 | 58 |
|
59 | 59 | %% -------------------------------------------------------------------------- %% |
@@ -95,7 +95,7 @@ cfg.aperture.type = 'none'; % 'bar', 'wedge', 'ring', 'circle' |
95 | 95 | % cfg.audio |
96 | 96 | cfg.audio.do = false; % set to true if you are going to play some sounds |
97 | 97 | cfg.audio.pahandle |
98 | | -cfg.audio.devIdx = [ ]; |
| 98 | +cfg.audio.devIdx = []; |
99 | 99 | cfg.audio.playbackMode = 1; |
100 | 100 | cfg.audio.requestedLatency = 3; |
101 | 101 | cfg.audio.fs 44800; % sampling frequency |
@@ -184,4 +184,4 @@ It is composed of two parts: |
184 | 184 | - the actual sandbox where to set your dynamic variables (the stimulation |
185 | 185 | parameters) and the 'playground' where to develop the stimulation code |
186 | 186 |
|
187 | | - When you are happy with it, ideally you will move the vars in `setParameters.m` and the stimulation code in a separate function in `my-experiment-folder/subfun`. The code style and variable names are the same used in `cpp-lln-lab/CPP_PTB` github repo, therefore it should be easy to move everything in your experiment scripts (see the template that is annexed in `cpp-lln-lab/CPP_PTB`). |
| 187 | + When you are happy with it, ideally you will move the vars in `setParameters.m` and the stimulation code in a separate function in `my-experiment-folder/subfun`. The code style and variable names are the same used in `cpp-lln-lab/CPP_PTB` github repo, therefore it should be easy to move everything in your experiment scripts (see the template that is annexed in `cpp-lln-lab/CPP_PTB`). |
0 commit comments