From f485d31d2dd2e80f835b648115067a341f1b4fb3 Mon Sep 17 00:00:00 2001 From: Comment Date: Mon, 19 Aug 2013 18:35:05 +0100 Subject: fix random node initialisation bug --- rotord/src/nodes_maths.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rotord/src/nodes_maths.h') 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 &_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 &settings) { + Random(map &settings):Random() { base_settings(settings); }; Random* clone(map &_settings) { return new Random(_settings);}; @@ -231,4 +231,4 @@ namespace Rotor { }; } -#endif \ No newline at end of file +#endif -- cgit v1.2.3