mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 05:28:41 +00:00
remove changes to prevent conflicts with draw branch
This commit is contained in:
parent
e54b2fb207
commit
1af2da0063
@ -124,13 +124,11 @@ export class Drawer {
|
|||||||
const lookahead = this.drawTime[1];
|
const lookahead = this.drawTime[1];
|
||||||
// calculate current frame time (think right side of screen for pianoroll)
|
// calculate current frame time (think right side of screen for pianoroll)
|
||||||
const phase = this.scheduler.now() + lookahead;
|
const phase = this.scheduler.now() + lookahead;
|
||||||
|
|
||||||
// first frame just captures the phase
|
// first frame just captures the phase
|
||||||
if (this.lastFrame === null) {
|
if (this.lastFrame === null) {
|
||||||
this.lastFrame = phase;
|
this.lastFrame = phase;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// query haps from last frame till now. take last 100ms max
|
// 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);
|
const haps = this.scheduler.pattern.queryArc(Math.max(this.lastFrame, phase - 1 / 10), phase);
|
||||||
this.lastFrame = phase;
|
this.lastFrame = phase;
|
||||||
@ -155,7 +153,6 @@ export class Drawer {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// TODO: scheduler.now() seems to move even when it's stopped, this hints at a bug...
|
// TODO: scheduler.now() seems to move even when it's stopped, this hints at a bug...
|
||||||
|
|
||||||
t = t ?? scheduler.now();
|
t = t ?? scheduler.now();
|
||||||
this.scheduler = scheduler;
|
this.scheduler = scheduler;
|
||||||
let [_, lookahead] = this.drawTime;
|
let [_, lookahead] = this.drawTime;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user