ignore sample names in draw

This commit is contained in:
Felix Roos 2022-03-13 11:41:18 +01:00
parent d5a928e6f7
commit b5bd9260ef

View File

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