From b3548f90171f0be1ebfd7020f38f3d0acec65f8b Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 9 Aug 2012 20:14:02 +0100 Subject: initial commit --- liveengine/src/testApp.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 liveengine/src/testApp.h (limited to 'liveengine/src/testApp.h') diff --git a/liveengine/src/testApp.h b/liveengine/src/testApp.h new file mode 100755 index 0000000..9b07764 --- /dev/null +++ b/liveengine/src/testApp.h @@ -0,0 +1,37 @@ +#pragma once + +#include "ofMain.h" +#include "ofxXmlSettings.h" + +#define OF_ADDON_USING_OFXMIDIIN + +#include "ofxMidi.h" + +class testApp : public ofBaseApp, public ofxMidiListener{ + + public: + + void setup(); + void update(); + void draw(); + + void keyPressed(int key); + void keyReleased(int key); + void mouseMoved(int x, int y ); + 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 dragEvent(ofDragInfo dragInfo); + void gotMessage(ofMessage msg); + + void toggleFPS(); + bool showFPS; + + ofxXmlSettings XML; + + int midiChannel; + ofxMidiIn midiIn; + void newMidiMessage(ofxMidiEventArgs& eventArgs); +}; + -- cgit v1.2.3