-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCsoundTest.h
49 lines (40 loc) · 1.65 KB
/
CsoundTest.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
#ifndef PASSTHROUGHALL_H
#define PASSTHROUGHALL_H
#include "../common/BiduleSDK.h"
#include <string>
#include "CsoundLib64/csound.hpp"
//#include "CsoundLib64/csPerfThread.hpp"
#include <array>
using namespace std;
namespace acme {
using namespace plogue::biduleSDK;
class CsoundTest: public BidulePlugin {
public:
CsoundTest(BiduleHost* host);
virtual ~CsoundTest();
virtual bool init();
virtual void getAudioInNames(std::vector<std::string>& vec);
virtual void getAudioOutNames(std::vector<std::string>& vec);
virtual void getMIDIInNames(std::vector<std::string>& vec);
virtual void getMIDIOutNames(std::vector<std::string>& vec);
virtual void getFreqInNames(std::vector<std::string>& vec);
virtual void getFreqOutNames(std::vector<std::string>& vec);
virtual void getMagInNames(std::vector<std::string>& vec);
virtual void getMagOutNames(std::vector<std::string>& vec);
virtual void parameterUpdate(long id);
virtual void getParametersInfos(ParameterInfo* pinfos);
virtual void getParameterChoices(long id, vector<string>& vec);
virtual void process(Sample** sampleIn, Sample** sampleOut, MIDIEvents* midiIn, MIDIEvents* midiOut, Frequency*** freqIn, Frequency*** freqOut, Magnitude*** magIn, Magnitude*** magOut, SyncInfo* syncIn, SyncInfo* syncOut);
protected:
//Create an instance of Csound
Csound* csound;
string csoundText;
MYFLT *spin, *spout;
int csCompileResult = -1;
int ksmpsIndex = 0;
array<float, 256> sinTable;
double _blurAmt;
double _pitch;
};
};
#endif