This commit is contained in:
Felix Roos 2022-03-13 11:48:08 +01:00
parent 5d8ccdff25
commit 225f6c7785
6 changed files with 20 additions and 13 deletions

2
docs/dist/draw.js vendored
View file

@ -26,7 +26,7 @@ Pattern.prototype.draw = function(callback, cycleSpan, lookaheadCycles = 1) {
cycle = currentCycle;
const begin = currentCycle * cycleSpan;
const end = (currentCycle + lookaheadCycles) * cycleSpan;
events = this.add(0).query(new State(new TimeSpan(begin, end)));
events = this._asNumber(true).query(new State(new TimeSpan(begin, end))).filter((event) => event.part.begin.valueOf() === event.whole.begin.valueOf());
}
}
callback(ctx, events, t, cycleSpan, time);