summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/rotor.h')
-rwxr-xr-xrotord/src/rotor.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h
index 20089b8..6c030ec 100755
--- a/rotord/src/rotor.h
+++ b/rotord/src/rotor.h
@@ -199,13 +199,13 @@ namespace Rotor {
for (auto a: attributes){
if (find_setting(settings,a.first,"")!="") {
attributes[a.first]->init(find_setting(settings,a.first,""));
- cerr<<"setting attribute '"<<a.first<<"'' to "<<find_setting(settings,a.first,"")<<" (index: "<<attributes[a.first]->intVal<<")"<<endl;
+ cerr<<"setting attribute '"<<a.first<<"' to "<<find_setting(settings,a.first,"")<<" (index: "<<attributes[a.first]->intVal<<")"<<endl;
}
}
for (auto p: parameters){
if (find_setting(settings,p.first,"")!="") {
parameters[p.first]->init(find_setting(settings,p.first,0.0f));
- cerr<<"setting parameter '"<<p.first<<"'' to "<<find_setting(settings,p.first,0.0f)<<endl;
+ cerr<<"setting parameter '"<<p.first<<"' to "<<find_setting(settings,p.first,0.0f)<<endl;
}
}
}
@@ -214,7 +214,9 @@ namespace Rotor {
p.second->get(time);
}
}
- virtual void set_parameter(const std::string &key,const std::string &value){};
+ void set_parameter(const std::string &key,const std::string &value){
+ if (parameters.find(key)!=parameters.end()) parameters[key]->value=ofToFloat(value);
+ };
};
class Signal_node: public Node{
public: