diff options
| author | Comment <tim@gray.(none)> | 2013-08-19 18:35:05 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-08-19 18:35:05 +0100 |
| commit | f485d31d2dd2e80f835b648115067a341f1b4fb3 (patch) | |
| tree | 3132c8190bed2872d7b16f8071a60532d9ed1b13 /rotord/src/nodes_maths.h | |
| parent | 318ba67bf91c07ff1edd0f2547b49d80ef9e0f83 (diff) | |
fix random node initialisation bug
Diffstat (limited to 'rotord/src/nodes_maths.h')
| -rw-r--r-- | rotord/src/nodes_maths.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rotord/src/nodes_maths.h b/rotord/src/nodes_maths.h index 4ec2cf9..b1e20ca 100644 --- a/rotord/src/nodes_maths.h +++ b/rotord/src/nodes_maths.h @@ -25,7 +25,7 @@ namespace Rotor { base_settings(settings); } Comparison* clone(map<string,string> &_settings) { return new Comparison(_settings);}; - const float output(const Time_spec &time) { + const float output(const Time_spec &time) { switch (attributes["operator"]->intVal) { case COMPARISON_Equal: return fequal(parameters["value"]->value,inputs[0]->get(time))?1.0f:0.0f; @@ -46,7 +46,7 @@ namespace Rotor { return fless_or_equal(parameters["value"]->value,inputs[0]->get(time))?1.0f:0.0f; break; } - + return 0.0f; } }; @@ -193,7 +193,7 @@ namespace Rotor { create_signal_input("signal","Signal"); create_parameter("seed","number","Seed value","Seed",1.0f); }; - Random(map<string,string> &settings) { + Random(map<string,string> &settings):Random() { base_settings(settings); }; Random* clone(map<string,string> &_settings) { return new Random(_settings);}; @@ -231,4 +231,4 @@ namespace Rotor { }; } -#endif
\ No newline at end of file +#endif |
