-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.cpp
68 lines (51 loc) · 1.95 KB
/
Config.cpp
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
/*
* Config.cpp
*
* Created on: Mar 11, 2014
* Author: edwinrietmeijer
*/
#include "Config.h"
namespace config {
std::string scriptFileName;
long fileMutate;
int receivePort;
int sendPort;
std::string receiveAddress;
std::string sendAddress;
int centerNote;
// The frequency below is the given frequency of the center note.
// On a normal piano A would be 440Hz, sometimes 432Hz is used.
double centerFreq;
bool isDiatonic;
// Default note values
std::vector<int> initDefaultPitch;
std::vector<int> * defaultPitch = & initDefaultPitch;
std::vector<double> initDefaultDur;
std::vector<double> * defaultDuration = & initDefaultDur;
std::vector<double> initDefaultVel;
std::vector<double> * defaultVelocity = & initDefaultVel;
// -- Basic stacks and vectors --
std::vector<double> noteRelatives;
std::vector<std::vector<int> > pitchStack;
std::vector<std::vector<double> > durationStack;
std::vector<std::vector<double> > velocityStack;
//std::vector<noteblock::NoteBlock *> streamStack;
std::vector<std::string> streamNames;
std::vector<int> loopCurrentIndex;
std::vector<double> loopWaitFor;
std::vector<double> loopTimePassed;
std::vector<noteblock::NoteBlock *> noteBlockStack;
std::vector<generator::Generator *> generatorStack;
std::vector<customtypes::GenId> generatorIds;
//scriptcommand::ScriptCommand * dummyScriptCommand;
//notestack::NoteStack * dummyNoteStack;
std::vector<scriptcommand::ScriptCommand *> initScriptCommandStack;
std::vector<std::vector<scriptcommand::ScriptCommand *> > playScriptCommandStack;
bool dumpPlayCommandStack = true;
genmediate::GeneratorMediatorVariables genMediatorVars;
genmediate::GeneratorMediatorVariablePointers genMediatorVarPointers;
genmediate::GeneratorMediatorVariables mutatorMediatorVars;
genmediate::GeneratorMediatorVariablePointers mutatorMediatorVarPointers;
scprocessor::ScriptCommandProcessor * playSCStackProcessor;
//osctransmitter::OscTransmitter * transmitter = osctransmitter::OscTransmitter::Instance();
}