summaryrefslogtreecommitdiff
path: root/glitcher2/src/ofApp.h
diff options
context:
space:
mode:
Diffstat (limited to 'glitcher2/src/ofApp.h')
-rw-r--r--glitcher2/src/ofApp.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/glitcher2/src/ofApp.h b/glitcher2/src/ofApp.h
new file mode 100644
index 0000000..beaceaf
--- /dev/null
+++ b/glitcher2/src/ofApp.h
@@ -0,0 +1,31 @@
+#pragma once
+
+#include "ofMain.h"
+#include "ofxOpenCv.h"
+#include "audioGlitcher.h"
+
+
+class ofApp : public ofBaseApp {
+public:
+
+ void setup();
+ void update();
+ void draw();
+ void exit();
+
+ void keyPressed(int key);
+ void mouseDragged(int x, int y, int button);
+ void mousePressed(int x, int y, int button);
+ void mouseReleased(int x, int y, int button);
+ void windowResized(int w, int h);
+
+ void audioIn(float * input, int bufferSize, int nChannels);
+
+ audioGlitcher glitch;
+
+ ofSoundStream soundStream;
+ vector<float> samples;
+
+ int frame;
+
+};