diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-01-11 21:32:17 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-01-11 21:32:17 +0000 |
| commit | a31d487dd9474567bc12a0af7c9031350f1e192a (patch) | |
| tree | 39a5967f2621851cfab225fc9b3a573ce57ac636 /NT/src/nodes.h | |
| parent | 16c01879d01e6faf1032fb7a3620d42685d4f706 (diff) | |
input array logic
Diffstat (limited to 'NT/src/nodes.h')
| -rw-r--r-- | NT/src/nodes.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<double>("inlet"); + inlets=create_array<double>("inlet"); value=create_inlet<double>("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<string,string> &_settings) { return new Multiply(_settings);}; private: - Variable_type<double> *inlet; + Variable_array_type<double> *inlets; Variable_type<double> *value; double result; }; |
