-
Notifications
You must be signed in to change notification settings - Fork 0
/
GeneratorMediation.h
49 lines (37 loc) · 1.42 KB
/
GeneratorMediation.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
/*
* GeneratorMediation.h
*
* Created on: Apr 3, 2014
* Author: edwinrietmeijer
*/
#ifndef GENERATORMEDIATION_H_
#define GENERATORMEDIATION_H_
#include <vector>
#include <iostream>
#include "GeneratorTypes.h"
namespace genmediate {
typedef struct {
std::vector<int> pitches;
std::vector<double> durations;
std::vector<double> velocities;
gentypes::GeneratorReturnStructure * genReturnStructure;
gentypes::GeneratorReturnType generatorReturnType;
gentypes::GeneratorReturnOrientation generatorReturnOrientation;
} GeneratorMediatorVariables;
typedef struct {
std::vector<int> * pitches;
std::vector<double> * durations;
std::vector<double> * velocities;
gentypes::GeneratorReturnType * generatorReturnTypePtr;
gentypes::GeneratorReturnOrientation * generatorReturnOrientationPtr;
int * centerNotePtr;
double * centerFreqPtr;
std::vector<double> * noteRelativesPtr;
gentypes::GeneratorReturnStructure * genReturnStructurePtr;
} GeneratorMediatorVariablePointers;
void clearVariables( GeneratorMediatorVariablePointers & );
void setVariablePointers( GeneratorMediatorVariables &, GeneratorMediatorVariablePointers & );
void setConfigPointers( GeneratorMediatorVariablePointers &, int &, double &, std::vector<double> & );
void setPointersToSets( GeneratorMediatorVariablePointers &, std::vector<int> *, std::vector<double> *, std::vector<double> * );
} /* namespace generatormediation */
#endif /* GENERATORMEDIATION_H_ */