From e54b2fb207a16deab4d2da57addec03cc0a9a364 Mon Sep 17 00:00:00 2001 From: "Jade (Rose) Rowland" Date: Fri, 23 Feb 2024 20:13:08 -0500 Subject: [PATCH] lower weighted average --- packages/core/neocyclist.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/neocyclist.mjs b/packages/core/neocyclist.mjs index ada66cf4..3cfb8d64 100644 --- a/packages/core/neocyclist.mjs +++ b/packages/core/neocyclist.mjs @@ -24,7 +24,7 @@ export class NeoCyclist { this.channel = new BroadcastChannel('strudeltick'); let worker_time_dif = 0; // time difference between audio context clock and worker clock let weight = 0; // the amount of weight that is applied to the current average when averaging a new time dif - const maxWeight = 400; + const maxWeight = 20; const precision = 10 ** 3; //round off time diff to prevent accumulating outliers // the clock of the worker and the audio context clock can drift apart over time