This commit is contained in:
Felix Roos 2022-04-23 17:38:29 +02:00
parent 08f8a7a17c
commit ab9871640a

View File

@ -730,7 +730,11 @@ export class Pattern {
.map((event) => {
const resetSpan = new TimeSpan(event.part.begin.sub(event.whole.begin), event.duration);
return this.query(new State(resetSpan)).map((hap) =>
hap.withSpan((s) => s.withTime((t) => t.add(event.whole.begin))).setContext(hap.combineContext(event)),
hap
.withSpan(
(s) => s.withTime((t) => t.add(event.whole.begin)), // TODO: somehow make sure span end does not overlap next event of pat
)
.setContext(hap.combineContext(event)),
);
})
.flat(),