-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.h
92 lines (74 loc) · 2.78 KB
/
Config.h
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
81
82
83
84
85
86
87
88
89
90
91
92
/*
* Config.h
*
* Created on: Mar 11, 2014
* Author: edwinrietmeijer
*/
#ifndef CONFIG_H_
#define CONFIG_H_
#include <vector>
#include <string>
#include "osc/OscReceivedElements.h"
#include "osc/OscPacketListener.h"
#include "osc/OscOutboundPacketStream.h"
#include "ip/IpEndpointName.h"
#include "ip/UdpSocket.h"
#include "OscTransmitter.h"
#include "Generator.h"
#include "GeneratorMediation.h"
#include "NoteBlock.h"
#include "CustomTypes.h"
#include "ScriptCommand.h"
#include "ScriptCommandProcessor.h"
#include "ScriptCommandStructs.h"
namespace config {
// Script file name
extern std::string scriptFileName;
extern long fileMutate;
extern int receivePort;
extern int sendPort;
extern std::string receiveAddress;
extern std::string sendAddress;
// A4 note is first note C minus 3
extern 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.
extern double centerFreq;
// Default generator chromatic/diatonic setting
extern bool isDiatonic;
// Default note values
extern std::vector<int> initDefaultPitch;
extern std::vector<int> * defaultPitch;
// Default duration values
extern std::vector<double> initDefaultDur;
extern std::vector<double> * defaultDuration;
// Default velocity values
extern std::vector<double> initDefaultVel;
extern std::vector<double> * defaultVelocity;
// -- Basic stacks and vectors --
extern std::vector<double> noteRelatives;
extern std::vector<std::vector<int> > pitchStack;
extern std::vector<std::vector<double> > durationStack;
extern std::vector<std::vector<double> > velocityStack;
//extern std::vector<noteblock::NoteBlock *> streamStack;
extern std::vector<std::string> streamNames;
extern std::vector<int> loopCurrentIndex;
extern std::vector<double>loopWaitFor;
extern std::vector<double> loopTimePassed;
extern std::vector<noteblock::NoteBlock * > noteBlockStack;
extern std::vector<generator::Generator *> generatorStack;
extern std::vector<customtypes::GenId> generatorIds;
//extern scriptcommand::ScriptCommand * dummyScriptCommand;
//extern notestack::NoteStack * dummyNoteStack;
//extern scriptcommand::ScriptCommand * dummyPlayScriptCommand;
extern std::vector<scriptcommand::ScriptCommand *> initScriptCommandStack;
extern std::vector<std::vector<scriptcommand::ScriptCommand *> > playScriptCommandStack;
extern bool dumpPlayCommandStack;
extern genmediate::GeneratorMediatorVariables genMediatorVars;
extern genmediate::GeneratorMediatorVariablePointers genMediatorVarPointers;
extern genmediate::GeneratorMediatorVariables mutatorMediatorVars;
extern genmediate::GeneratorMediatorVariablePointers mutatorMediatorVarPointers;
extern scprocessor::ScriptCommandProcessor * playSCStackProcessor;
//extern osctransmitter::OscTransmitter * transmitter;
}
#endif /* CONFIG_H_ */