From deed61c5f4d9de82101bb55a5a017ed9775df5d3 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 3 Feb 2018 19:02:57 +0000 Subject: midi control --- gui/src/ofApp.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gui/src/ofApp.h') 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; -- cgit v1.2.3