diff options
| author | Tim Redfern <redfernt@gmail.com> | 2023-04-17 09:33:29 +0100 |
|---|---|---|
| committer | Tim Redfern <redfernt@gmail.com> | 2023-04-17 09:33:29 +0100 |
| commit | 5309ef89393aa56083d1c2238c517c3d576907ec (patch) | |
| tree | d91b53adffcee583cc26f0018b2b8c5d78867e6f /nextus/src/ofApp.cpp | |
| parent | 94c9aaaab09956efc4117e268cd35fbdcd352e61 (diff) | |
nextus skeleton compiles
Diffstat (limited to 'nextus/src/ofApp.cpp')
| -rw-r--r-- | nextus/src/ofApp.cpp | 30 |
1 files changed, 16 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(){ |
