mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-06 23:19:44 -04:00
format
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user