This commit is contained in:
Jade (Rose) Rowland 2024-08-18 12:08:40 -04:00
parent 4eae366bee
commit 2c9ea03fde
3 changed files with 4 additions and 6 deletions

View file

@ -44,7 +44,7 @@ export class NeoCyclist {
haps.forEach((hap) => {
if (hap.hasOnset()) {
const timeUntilTrigger = cycleToSeconds(hap.whole.begin - this.cycle, this.cps);
const targetTime = timeUntilTrigger + currentTime + this.latency
const targetTime = timeUntilTrigger + currentTime + this.latency;
const duration = cycleToSeconds(hap.duration, this.cps);
onTrigger?.(hap, 0, duration, this.cps, targetTime);
}