summaryrefslogtreecommitdiff
path: root/NT/src/nodes.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-01-22 14:28:34 +0000
committerTim Redfern <tim@eclectronics.org>2014-01-22 14:28:34 +0000
commita879f37ff944cd7bf502f4e3520b7da3d8faf39b (patch)
tree630ee0e87764e5982a00524f045b51d486f3292a /NT/src/nodes.h
parentc10e756720fe30ad2ffdcb54d83737aaad77190b (diff)
variable arrays working correctly
Diffstat (limited to 'NT/src/nodes.h')
-rw-r--r--NT/src/nodes.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/NT/src/nodes.h b/NT/src/nodes.h
index 0f885da..21b1fc4 100644
--- a/NT/src/nodes.h
+++ b/NT/src/nodes.h
@@ -45,9 +45,13 @@ namespace Rotor{
};
const double &get_output(const Frame_parameters &frame){
result=1.0f;
- for (auto val:factors->get_values()) {
- std::cerr<<"got value: "<<val.get(frame)<<std::endl;
- result*=val.get(frame);
+ //for (auto val:factors->get_values()) {
+ // result*=val.get(frame);
+ //}
+ //std::cerr<<"multiplying "<<factors->get_number()<<" factors"<<std::endl;
+ for (uint32_t i=0;i<factors->get_number();i++){
+ //std::cerr<<"result from input "<<i<<": "<<factors->get(i,frame)<<std::endl;
+ result*=factors->get(i,frame);
}
return result;
}