summaryrefslogtreecommitdiff
path: root/NT/src/nodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'NT/src/nodes.h')
-rw-r--r--NT/src/nodes.h6
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;
};