summaryrefslogtreecommitdiff
path: root/gui/src/ofApp.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/ofApp.h')
-rw-r--r--gui/src/ofApp.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gui/src/ofApp.h b/gui/src/ofApp.h
index 5f26ad1..6148613 100644
--- a/gui/src/ofApp.h
+++ b/gui/src/ofApp.h
@@ -10,6 +10,7 @@
#include "lineSegmenter.h"
#include "ofxXmlSettings.h"
#include "ofxClipper.h"
+#include "ofxMidi.h"
enum Source{
TEST,
@@ -20,7 +21,7 @@ enum Source{
Source_end
};
-class ofApp: public ofBaseApp {
+class ofApp: public ofBaseApp, public ofxMidiListener {
public:
void setup();
@@ -38,6 +39,8 @@ class ofApp: public ofBaseApp {
void mouseExited(int x, int y);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
+
+ void newMidiMessage(ofxMidiMessage& eventArgs);
void updateOutput(ofEventArgs & args);
void drawOutput(ofEventArgs & args);
@@ -110,6 +113,11 @@ class ofApp: public ofBaseApp {
ofxFloatSlider segmenter_length;
ofxIntSlider segmenter_number;
+ //======================================= //MIDI
+
+ ofxMidiIn midiIn;
+ ofxMidiMessage midiMessage;
+
//======================================= //video player
ofVideoPlayer movie;