-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLocalConfig.pde.example
45 lines (38 loc) · 2.1 KB
/
LocalConfig.pde.example
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
String RECORDED_HITS_OUTPUT_FILE = "test-17-2036.txt";
String RECORDED_HITS_INPUT_FILE = RECORDED_HITS_OUTPUT_FILE;
final int MIDI_CHANNEL = 0;
final int MIDI_CHANNEL_FOR_CONTROLLERS_AND_BUTTONS = 1;
// String MIDI_DEVICE_NAME = "IAC-Bus 1";
//String MIDI_DEVICE_NAME = "Java Sound Synthesizer";
// String MIDI_DEVICE_NAME = "Native Instruments Kore Player Virtual Input";
String MIDI_DEVICE_NAME = "LoopBe Internal MIDI";
final int NUMBER_OF_SIGNALS = 3+3;
final int NUMBER_OF_BUTTONS = 2+2;
final String[] BUTTON_LABELS = {"btnL1", "btnL2", "btnR1", "btnR2"};
final boolean SIMULATE_SERIAL_INPUT = false;
final int NUMBER_OF_LINES_TO_SKIP_ON_INIT = 10;
final int SERIAL_PORT_NUMBER = 0;
final int SERIAL_PORT_BAUD_RATE = 6*9600;
// int[] SIGNAL_GROUP_OF_AXIS = {0, 0, 0, 1, 1, 1};
// int[] SIGNAL_GROUP_OF_AXIS = {0, 0, 0, 0, 0, 0};
int[] SIGNAL_GROUP_OF_AXIS = {0, 0, 0, 1, 1, 1};
int LENGTH_OF_PAST_VALUES = 30;
int TRIGGER_TYPE = MovementTriggerTypes.SingleThreshold;
final boolean[] MIDI_SIGNAL_IS_AN_INSTRUMENT = {true,true,true,true,true,true}; // 1 for each outcome
final float TONE_LENGTH = 300.; // in ms
final String[] AXIS_LABELS = {"1x", "1y", "1z", "2x", "2y", "2z"};
boolean BAYESIAN_MODE_ENABLED = true;
String[] OUTCOMES_LABEL = { "R null", "L null", "R side hit ", "L reach pop", "R clock", "L up point", "L tut down", "L writst rotate", "R wrist rotate" };
int[] MIDI_PITCH_CODES = { -1, -1, 41, 43, 46, 52, 48, 51, 40 };
int[] SIGNAL_GROUP_OF_OUTCOME = {0, 1, 0, 1, 0, 1, 1, 1, 0};
boolean[] SKIP_OUTCOME_WHEN_EVALUATING_BAYESIAN_DETECTOR = {true, true, false, false, false, false, false, false, false};
// int[] MIDI_BUTTON_CODES = {72, 73, 74, 75};
final int[][] MIDI_BUTTON_CODES = {{72, 73}, {73}, {74}, {75}};
int[] NULL_OUTCOME_FOR_SIGNAL_GROUP = {0, 1};
int MAX_NUMBER_OF_EVENTS_FOR_LEARNING = 100;
// Note: Make sure the following outcomes are from all possible signal groups
int[] OUTCOME_TO_PLAY_DURING_REC_WHEN_GROUP_IS_TRIGGERED = {0, 3};
color[] LINE_COLORS = {#1BA5E0,#B91BE0,#E0561B,#42E01B,#EDE13B,#D4AADC};
float INIT_SECONDS = 10.0;
final int BLENDDOWN_ALPHA = 20;
final int ROLLING_INCREMENT = 1;