summaryrefslogtreecommitdiff
path: root/nextus/src/ofApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nextus/src/ofApp.cpp')
-rw-r--r--nextus/src/ofApp.cpp30
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(){