allow changing cps from a hap

This commit is contained in:
Felix Roos 2022-08-12 22:28:19 +02:00
parent 4b294c4aff
commit eaf6617a43

View File

@ -20,6 +20,9 @@ export class Scheduler {
this.phase = end;
const haps = this.pattern.queryArc(begin, end);
haps.forEach((e) => {
if (typeof e.value?.cps === 'number') {
this.setCps(e.value?.cps);
}
if (!e.part.begin.equals(e.whole.begin)) {
return;
}