rt300@0
|
1 //
|
rt300@0
|
2 // globalVariables.h
|
rt300@0
|
3 // emptyExample
|
rt300@0
|
4 //
|
rt300@0
|
5 // Created by Robert Tubb on 22/05/2013.
|
rt300@0
|
6 //
|
rt300@0
|
7 //
|
rt300@0
|
8
|
rt300@0
|
9 #pragma once
|
rt300@0
|
10 #include "ofMain.h"
|
rt300@11
|
11 #include "boost/bind.hpp"
|
rt300@11
|
12 #include "boost/function.hpp"
|
rt300@0
|
13 // magic numbers for event ids
|
rt300@0
|
14 #define TRIGGER_TARGET_ID 99236082
|
rt300@0
|
15 #define TRIGGER_CANDIDATE_ID 99233256
|
rt300@0
|
16 #define RANDOMISE_TARGET_ID 99764448
|
rt300@0
|
17 #define SUBMIT_CANDIDATE 99371538
|
rt300@0
|
18 #define START_ALTERNATE_ID 99956352
|
rt300@0
|
19 #define SHOW_HIDE_PANEL 99857329
|
rt300@0
|
20 #define SHOW_HIDE_HINT 99724563
|
rt300@0
|
21 #define NEW_TEST_ID 99163527
|
rt300@0
|
22 #define CRAP_TEST_ID 99817364
|
rt300@0
|
23 #define GOOD_TEST_ID 99090378
|
rt300@0
|
24 #define RESTART_EXPERIMENT_ID 99658290
|
rt300@0
|
25 #define SPEED_CHANGE_ID 99573012
|
rt300@0
|
26 #define VOLUME_CHANGE_ID 99263748
|
rt300@29
|
27 #define START_TRAINING_SEQUENCE_ID 99189938
|
rt300@4
|
28 #define SAVE_PRESET_HIT 99245748
|
rt300@44
|
29 #define NEXT_PRESET_HIT 99241148
|
rt300@37
|
30 #define TO_MENU_ID 99545741
|
rt300@43
|
31 #define SKIP_RUN_ID 99765346
|
rt300@38
|
32 #define FORGOT_SEQ_ID 99123123
|
rt300@4
|
33 #define RECALL_PRESET_HIT 99298750
|
rt300@0
|
34 #define ALTERNATION_SPEED 180 // ms that target / candidate sounds play
|
rt300@0
|
35 // globles
|
rt300@0
|
36
|
rt300@16
|
37 #define TOTAL_NUM_PARAMS 6
|
rt300@32
|
38 #define TARGET_SCORE_CC_BAND 7 // number of cc vals per target band in dartboard
|
rt300@34
|
39 #define MIN_LOG_DIST 4 // how far we go before control adjustment is logged
|
rt300@0
|
40 typedef enum {TOUCH_DOWN, TOUCH_MOVED, TOUCH_UP} touchType;
|
rt300@0
|
41 typedef enum {INTRO,QUESTIONNAIRE, HELP, TEST_IN_PROGRESS, SCORE_AND_HINT, COUNT_DOWN, READY_FOR_NEXT} interfaceType;
|
rt300@0
|
42
|
rt300@45
|
43 typedef enum {FAMILIARISATION, EXPRESS, TRAINING, SEARCH, DEMO} testStages;
|
rt300@9
|
44
|
rt300@27
|
45 typedef enum {SLIDER, XYPAD, BUTTON, LEAP3D, LEAP6D} controllerType;
|
rt300@27
|
46 typedef enum {SEQUENTIAL, REVISITABLE, SIMULTANEOUS, MULTI_SIMPLE, MULTI_COMPLEX, ALL_SLIDERS, LEAP6DOF} controlPanelType;
|
rt300@0
|
47
|
rt300@37
|
48 typedef enum {FILL,LINE, BLOB, TEXTURE_FILL} SliderType;
|
rt300@0
|
49
|
rt300@11
|
50 typedef enum {SMALLFONT, MEDIUMFONT, LARGEFONT} FontSize;
|
rt300@11
|
51
|
rt300@11
|
52 typedef boost::function<void(int)> TickListenerFunction;
|
rt300@31
|
53
|
rt300@31
|
54
|
rt300@31
|
55 // USEFUL FUNCTIONS
|
rt300@31
|
56
|
rt300@31
|
57 template <typename T>
|
rt300@31
|
58 vector<T> zeros(int numElements){
|
rt300@31
|
59 vector<T> v;
|
rt300@31
|
60 for(int i = 0; i< numElements; i++){
|
rt300@31
|
61 v.push_back(0);
|
rt300@31
|
62 }
|
rt300@31
|
63 return v;
|
rt300@31
|
64
|
rt300@31
|
65 }
|