This commit is contained in:
Felix Roos 2022-03-12 21:04:50 +01:00
parent 1558fd9519
commit 78a2a47fbf
3 changed files with 5 additions and 5 deletions

View file

@ -28,11 +28,11 @@ Pattern.prototype.draw = function (callback, queryDuration) {
if (cycle !== currentCycle) {
cycle = currentCycle;
const begin = currentCycle * queryDuration;
const end = (currentCycle + 2) * queryDuration;
const end = (currentCycle + 1) * queryDuration;
events = this.add(0).query(new State(new TimeSpan(begin, end)));
}
}
callback(ctx, events, t, time);
callback(ctx, events, t, queryDuration, time);
window.strudelAnimation = requestAnimationFrame(animate);
};
requestAnimationFrame(animate);