new build script + fix draw

This commit is contained in:
Felix Roos 2022-05-17 22:45:23 +02:00
parent ed35f967b0
commit 806c8925c9
5 changed files with 12 additions and 2 deletions

View file

@ -37,6 +37,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(Boolean)
.filter((event) => event.part.begin.equals(event.whole.begin));
}
}