diff options
| author | mick grierson <mickgrierson@gmail.com> | 2015-08-14 19:17:40 +0100 |
|---|---|---|
| committer | mick grierson <mickgrierson@gmail.com> | 2015-08-14 19:17:40 +0100 |
| commit | 18ab896876b2d7ecaf4a4eda26a14e0999a8b396 (patch) | |
| tree | c3fbd5db23369e304d1b4f2cfdc61749f24d2879 /ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/ofApp.h | |
| parent | 0921f81dd5fc388d5327787f200e25aa5d1ac24e (diff) | |
adding addon .. er
Diffstat (limited to 'ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/ofApp.h')
| -rwxr-xr-x | ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/ofApp.h | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/ofApp.h b/ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/ofApp.h new file mode 100755 index 0000000..5756aa3 --- /dev/null +++ b/ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/ofApp.h @@ -0,0 +1,99 @@ +#pragma once + +#include "ofMain.h" +#include "ofxiOS.h" +#include "ofxiOSExtras.h" +#include "ofxMaxim.h" +#include "ofxGui.h" +#include "ofxOsc.h" + +#include <sys/time.h> + +#include "maxiMFCC.h" +#define HOST "localhost" +#define PORT 6448 + + +class ofApp : public ofxiOSApp{ + +public: + void setup(); + void update(); + void draw(); + void exit(); + + void touchDown(ofTouchEventArgs & touch); + void touchMoved(ofTouchEventArgs & touch); + void touchUp(ofTouchEventArgs & touch); + void touchDoubleTap(ofTouchEventArgs & touch); + void touchCancelled(ofTouchEventArgs & touch); + + void lostFocus(); + void gotFocus(); + void gotMemoryWarning(); + void deviceOrientationChanged(int newOrientation); + void audioIn(float * input, int bufferSize, int nChannels); + void audioOut(float * output, int bufferSize, int nChannels); + + float * lAudioOut; /* outputs */ + float * rAudioOut; + + float * lAudioIn; /* inputs */ + float * rAudioIn; + + int initialBufferSize; /* buffer size */ + + + //MAXIMILIAN STUFF: + + int sampleRate; + int bufferSize; + + maxiMix channel1; + + double wave,sample,outputs[2], ifftVal; + maxiMix mymix; + maxiOsc osc; + + ofxMaxiFFTOctaveAnalyzer oct; + int nAverages; + float *ifftOutput; + int ifftSize; + + float peakFreq = 0; + float centroid = 0; + float RMS = 0; + + ofxMaxiIFFT ifft; + ofxMaxiFFT mfft; + int fftSize; + int bins, dataSize; + + float callTime; + timeval callTS, callEndTS; + + maxiMFCC mfcc; + double *mfccs; + + maxiSample samp; + + //GUI STUFF + bool bHide; + + ofxToggle mfccToggle; + ofxToggle fftToggle; + ofxToggle chromagramToggle; + ofxToggle peakFrequencyToggle; + ofxToggle centroidToggle; + ofxToggle rmsToggle; + + ofxPanel gui; + + ofTrueTypeFont myfont; + + ofxOscSender sender; + + +}; + + |
