Make splice cps-aware (#932)

* make splice cps-aware

* format

* copypaste fix
This commit is contained in:
Alex McLean 2024-01-20 22:47:31 +00:00 committed by GitHub
parent a7f5d0e0c1
commit 738cea0025
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 11 deletions

View file

@ -41,7 +41,7 @@ export class Cyclist {
this.lastEnd = end;
// query the pattern for events
const haps = this.pattern.queryArc(begin, end);
const haps = this.pattern.queryArc(begin, end, { _cps: this.cps });
const tickdeadline = phase - time; // time left until the phase is a whole number
this.lastTick = time + tickdeadline;