From 1af2da0063c134bca9b99c9b9f39f49e0950a037 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Thu, 7 Mar 2024 12:00:27 +0100 Subject: [PATCH] remove changes to prevent conflicts with draw branch --- packages/core/draw.mjs | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/core/draw.mjs b/packages/core/draw.mjs index 4b3706db..7a9454f2 100644 --- a/packages/core/draw.mjs +++ b/packages/core/draw.mjs @@ -124,13 +124,11 @@ export class Drawer { const lookahead = this.drawTime[1]; // calculate current frame time (think right side of screen for pianoroll) const phase = this.scheduler.now() + lookahead; - // first frame just captures the phase if (this.lastFrame === null) { this.lastFrame = phase; return; } - // query haps from last frame till now. take last 100ms max const haps = this.scheduler.pattern.queryArc(Math.max(this.lastFrame, phase - 1 / 10), phase); this.lastFrame = phase; @@ -155,7 +153,6 @@ export class Drawer { return; } // TODO: scheduler.now() seems to move even when it's stopped, this hints at a bug... - t = t ?? scheduler.now(); this.scheduler = scheduler; let [_, lookahead] = this.drawTime;