mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-21 18:48:36 +00:00
allow changing cps from a hap
This commit is contained in:
parent
4b294c4aff
commit
eaf6617a43
@ -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…
x
Reference in New Issue
Block a user