From a31d487dd9474567bc12a0af7c9031350f1e192a Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 11 Jan 2014 21:32:17 +0000 Subject: input array logic --- NT/src/nodes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'NT/src/nodes.h') diff --git a/NT/src/nodes.h b/NT/src/nodes.h index da24292..f294756 100644 --- a/NT/src/nodes.h +++ b/NT/src/nodes.h @@ -27,7 +27,7 @@ namespace Rotor{ class Multiply: public Double_node { public: Multiply(){ - inlet=create_inlet("inlet"); + inlets=create_array("inlet"); value=create_inlet("value"); node_type="multiply"; } @@ -35,12 +35,12 @@ namespace Rotor{ init(settings); }; const double &get_output(const Frame_parameters &frame){ - result=inlet->get(frame)*value->get(frame); + result=inlets->get(0,frame)*value->get(frame); return result; } Multiply* clone(map &_settings) { return new Multiply(_settings);}; private: - Variable_type *inlet; + Variable_array_type *inlets; Variable_type *value; double result; }; -- cgit v1.2.3