diff options
| -rw-r--r-- | nextus/src/ofApp.cpp | 30 | ||||
| -rw-r--r-- | nextus/src/ofApp.h | 3 |
2 files changed, 19 insertions, 14 deletions
diff --git a/nextus/src/ofApp.cpp b/nextus/src/ofApp.cpp index 4f0624c..71ece45 100644 --- a/nextus/src/ofApp.cpp +++ b/nextus/src/ofApp.cpp @@ -7,23 +7,12 @@ const ofPoint outputWindowSize=ofPoint(1200,900); //-------------------------------------------------------------- void ofApp::setup(){ - +/* midiIn.listInPorts(); midiIn.openPort(0); midiIn.addListener(this); - - if( XML.loadFile("settings.xml") ){ - cout << "settings.xml loaded!" <<std::endl; - - } - else{ - cout << "unable to load settings.xml"<<std::endl; - } - - //outputScale=XML.getValue("SCALE", 1.0f); - - cout << "listening for osc messages on port " << PORT << "\n"; - receiver.setup(PORT); +*/ + load_settings(); ofSetFrameRate(60); } @@ -45,6 +34,19 @@ void ofApp::save_settings(){ cout << "settings.xml saved!" <<std::endl; } +void ofApp::load_settings(){ + + if( XML.loadFile("settings.xml") ){ + cout << "settings.xml loaded!" <<std::endl; + + } + else{ + cout << "unable to load settings.xml"<<std::endl; + } + + //outputScale=XML.getValue("SCALE", 1.0f); +} + void ofApp::update(){ diff --git a/nextus/src/ofApp.h b/nextus/src/ofApp.h index 54fab67..b62b06b 100644 --- a/nextus/src/ofApp.h +++ b/nextus/src/ofApp.h @@ -41,5 +41,8 @@ class ofApp: public ofBaseApp, public ofxMidiListener { ofxXmlSettings XML; + void default_settings(); + void save_settings(); + void load_settings(); }; |
