From d1e12e5dbc41e9d05b40b611d7e62affb15b2ec7 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 27 Jan 2014 15:52:21 +0000 Subject: change meaning of random frequency --- rotord/src/nodes_maths.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rotord/src/nodes_maths.h') diff --git a/rotord/src/nodes_maths.h b/rotord/src/nodes_maths.h index b2aa9c7..7fd0f13 100644 --- a/rotord/src/nodes_maths.h +++ b/rotord/src/nodes_maths.h @@ -246,7 +246,7 @@ namespace Rotor { o=inputs[0]->get(time); } else o=time.time; - uint32_t m=(int)(o/parameters["frequency"]->value); + uint32_t m=(int)(o*parameters["frequency"]->value); PRNG.seed(m^(int)parameters["seed"]->value); return ((double)(PRNG()&0xffff))+(((o/parameters["frequency"]->value)*parameters["frequency"]->value)-m); -- cgit v1.2.3