now running smooth without memoization
This commit is contained in:
parent
77fafd40fb
commit
61e81a4e60
8 changed files with 24 additions and 924 deletions
|
|
@ -31,7 +31,7 @@ Pattern.prototype.draw = function (callback, cycleSpan, lookaheadCycles = 1) {
|
|||
const end = (currentCycle + lookaheadCycles) * cycleSpan;
|
||||
events = this._asNumber(true) // true = silent error
|
||||
.query(new State(new TimeSpan(begin, end)))
|
||||
.filter((event) => event.part.begin.valueOf() === event.whole.begin.valueOf());
|
||||
.filter((event) => event.part.begin.equals(event.whole.begin));
|
||||
}
|
||||
}
|
||||
callback(ctx, events, t, cycleSpan, time);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue