diff --git a/src/API.ts b/src/API.ts index f5bba41..d631efb 100644 --- a/src/API.ts +++ b/src/API.ts @@ -2481,7 +2481,7 @@ export class UserAPI { address: address, port: port, args: args, - timetag: Math.round(Date.now() + this.app.clock.deadline), + timetag: Math.round(Date.now() + (this.app.clock.nudge - this.app.clock.deviation)), } as OSCMessage); }; diff --git a/src/classes/SoundEvent.ts b/src/classes/SoundEvent.ts index bba55f5..314252b 100644 --- a/src/classes/SoundEvent.ts +++ b/src/classes/SoundEvent.ts @@ -437,7 +437,11 @@ export class SoundEvent extends AudibleEvent { if (filteredEvent.freq) { delete filteredEvent.note; } - superdough(filteredEvent, this.app.clock.deadline, filteredEvent.dur); + superdough( + filteredEvent, + this.nudge - this.app.clock.deviation, + filteredEvent.dur + ); } }; @@ -461,7 +465,7 @@ export class SoundEvent extends AudibleEvent { address: oscAddress, port: oscPort, args: event, - timetag: Math.round(Date.now() + this.app.clock.deadline), + timetag: Math.round(Date.now() + (this.nudge - this.app.clock.deviation)), } as OSCMessage); } };