Tweaked Flex random algorithm AGAIN
This commit is contained in:
parent
9414f0b971
commit
3391e9173f
@ -219,7 +219,7 @@ function pickRandomWithMaxDuration(channel, list, maxDuration) {
|
||||
//30 minutes is too little, don't repeat it at all
|
||||
}
|
||||
if (timeSince >= D) {
|
||||
let w = Math.pow(clip.actualDuration, 1.0 / 8.0);
|
||||
let w = Math.pow(clip.actualDuration, 1.0 / 4.0);
|
||||
n += w;
|
||||
if ( n*Math.random() < w) {
|
||||
pick1 = clip;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user