-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScriptCommand.h
60 lines (49 loc) · 1.55 KB
/
ScriptCommand.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
/*
* ScriptCommand.h
*
* Created on: Mar 18, 2014
* Author: edwinrietmeijer
*/
#ifndef SCRIPTCOMMAND_H_
#define SCRIPTCOMMAND_H_
#include <vector>
#include "CustomTypes.h"
#include "CommonFunctions.h"
#include "ScriptCommandStructs.h"
#include "NoteBlock.h"
#include "Generator.h"
#include "OscTransmitter.h"
#include "MusicalFunctions.h"
#include "GeneratorMediation.h"
namespace scriptcommand {
class ScriptCommand {
private:
ScriptCommandVars scrCommVars_;
genmediate::GeneratorMediatorVariablePointers generatorMedVarPointers_;
genmediate::GeneratorMediatorVariablePointers mutatorMedVarPointers_;
bool isPlaying_;
std::vector<notestack::NoteStack *>::iterator nbPos_;
std::vector<notestack::NoteStack *>::iterator nbPosBegin_;
std::vector<notestack::NoteStack *>::iterator nbPosEnd_;
noteblock::NoteBlock * noteBlockPointer_;
gentypes::GeneratorReturnStructure genStructReturned_;
ScriptCommandReturn dataToReturn_;
int nbIndex_;
int nbSize_;
osctransmitter::OscTransmitter * transmitter_;
public:
ScriptCommand();
ScriptCommand( ScriptCommandVars );
void setMediatorPointers( genmediate::GeneratorMediatorVariables &, genmediate::GeneratorMediatorVariables & );
void setConfigPointers( int &, double &, std::vector<double> & );
void setTransmitter( osctransmitter::OscTransmitter * );
ScriptCommandReturn run();
void setVarPointersToReturnType();
void processGeneratorNotes( int );
void processGeneratorNotes();
void dump();
bool isPlay();
virtual ~ScriptCommand();
};
} /* namespace scriptcommand */
#endif /* SCRIPTCOMMAND_H_ */