From be19f5a21dc1fe717711d76f500f6bfe0c4d166b Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 4 Sep 2013 15:30:03 +0100 Subject: adding final audio feature --- rotord/src/rotor.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'rotord/src/rotor.h') diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index a769430..d6426f5 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -159,9 +159,9 @@ namespace Rotor { }; class Node{ public: + Node(){duplicate_inputs=false;}; virtual Node* clone(map &_settings)=0; //pure virtual virtual ~Node(){ - duplicate_inputs=false; }; vector inputs; //simple node can have signal inputs, output depends on node type unordered_map parameters; //linked parameters can convert from settings to inputs @@ -199,12 +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 '"<intVal<<")"<init(find_setting(settings,p.first,0.0f)); - cerr<<"setting parameter "<value,parameters["weight_s"]->value,parameters["weight_v"]->value}; float weight_total=255.0f/pow(pow(weights[0]*255,2)+pow(weights[1]*255,2)+pow(weights[2]*255,2),0.5); - + for (int i=0;i