mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-28 23:55:16 -04:00
pass cps to hap trigger
This commit is contained in:
@@ -39,7 +39,7 @@ export class Cyclist {
|
||||
if (hap.part.begin.equals(hap.whole.begin)) {
|
||||
const deadline = (hap.whole.begin - begin) / this.cps + tickdeadline + latency;
|
||||
const duration = hap.duration / this.cps;
|
||||
onTrigger?.(hap, deadline, duration);
|
||||
onTrigger?.(hap, deadline, duration, this.cps);
|
||||
}
|
||||
});
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user