allow changing cps from a hap
This commit is contained in:
parent
4b294c4aff
commit
eaf6617a43
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ export class Scheduler {
|
||||||
this.phase = end;
|
this.phase = end;
|
||||||
const haps = this.pattern.queryArc(begin, end);
|
const haps = this.pattern.queryArc(begin, end);
|
||||||
haps.forEach((e) => {
|
haps.forEach((e) => {
|
||||||
|
if (typeof e.value?.cps === 'number') {
|
||||||
|
this.setCps(e.value?.cps);
|
||||||
|
}
|
||||||
if (!e.part.begin.equals(e.whole.begin)) {
|
if (!e.part.begin.equals(e.whole.begin)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue