diff options
Diffstat (limited to 'NT/src/nodes.h')
| -rw-r--r-- | NT/src/nodes.h | 10 |
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; } |
