diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-02-03 19:02:57 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-02-03 19:02:57 +0000 |
| commit | deed61c5f4d9de82101bb55a5a017ed9775df5d3 (patch) | |
| tree | 147566f63094e1a214eb725cdeeb44f9c446df80 /gui/src/ofApp.h | |
| parent | 8549014760e1ac10faafa9d9335ff8e63c01bb06 (diff) | |
midi control
Diffstat (limited to 'gui/src/ofApp.h')
| -rw-r--r-- | gui/src/ofApp.h | 10 |
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; |
