-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSampler.h
57 lines (47 loc) · 1.17 KB
/
Sampler.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
#pragma once
#include "ofMain.h"
#include "ofxMaxim.h"
#include "Playlist.h"
#include "Zones.h"
class Sampler {
public:
void setup(int bufferSize, int index);
void trigger(float x, float y, int col);
void filter(float x, float y);
void delay(float x, float y);
void play(int pos, double pan);
//objects
maxiEnv envelope;
maxiSample sound[9];
maxiMix bus;
maxiFilter myFilterLoRes, myFilterLoPass;
maxiDelayline myDelayLine;
Playlist list;
Zones zone;
//audio streams
double outputs[2];
double sampleOut;
double filtered;
double delayed;
float * buffer;
//properties
double speed;
double amplitude;
bool touched;
bool looping;
bool recording;
int myBufferSize;
int sampleTrigger;
int index;
int track;
//filter
double frequencyLoRes;
double frequencyLoPass;
double resonance;
double filterMix;
bool filterOn;
//delay
double size;
double feedback;
bool delayOn;
};