diff options
| author | Tim Redfern <tim@getdrop.com> | 2022-12-18 23:30:14 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2022-12-18 23:30:14 +0000 |
| commit | 493d6151ee284b5cfa136b88793498d7d9a59051 (patch) | |
| tree | 840160bc94ec89297597617adc352b10d065b9cc /glitcher2/src/ofApp.h | |
| parent | 36a3cf9cf6206a4be7021f980da51c89229dc8c7 (diff) | |
standalone of10 versionmain
Diffstat (limited to 'glitcher2/src/ofApp.h')
| -rw-r--r-- | glitcher2/src/ofApp.h | 31 |
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; + +}; |
