working but animation is weird

This commit is contained in:
Jade (Rose) Rowland 2024-01-10 23:49:02 -05:00
parent 0c7b731fa6
commit 721f707c94
8 changed files with 48 additions and 52 deletions

View file

@ -124,6 +124,7 @@ 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;