From 92c4cff606b59465026cd760cc4bd78b86909bfb Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 23 Feb 2025 10:57:45 +0000 Subject: [PATCH] format --- packages/core/signal.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/signal.mjs b/packages/core/signal.mjs index 38851c055..b565e4c31 100644 --- a/packages/core/signal.mjs +++ b/packages/core/signal.mjs @@ -204,7 +204,7 @@ const timeToIntSeed = (x) => xorwise(Math.trunc(_frac(x / 300) * 536870912)); const intSeedToRand = (x) => (x % 536870912) / 536870912; // Set first random value to be 0.5, otherwise it would be 0. https://github.com/tidalcycles/strudel/issues/1293 -const timeToRand = (x) => x === 0 ? 0.5 : Math.abs(intSeedToRand(timeToIntSeed(x))); +const timeToRand = (x) => (x === 0 ? 0.5 : Math.abs(intSeedToRand(timeToIntSeed(x)))); const timeToRandsPrime = (seed, n) => { const result = [];