fixing some methods

This commit is contained in:
2023-12-17 17:27:14 +01:00
parent ccd56bb805
commit d5e34d2728
2 changed files with 7 additions and 3 deletions

View File

@ -2481,7 +2481,7 @@ export class UserAPI {
address: address, address: address,
port: port, port: port,
args: args, 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); } as OSCMessage);
}; };

View File

@ -437,7 +437,11 @@ export class SoundEvent extends AudibleEvent {
if (filteredEvent.freq) { if (filteredEvent.freq) {
delete filteredEvent.note; 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, address: oscAddress,
port: oscPort, port: oscPort,
args: event, args: event,
timetag: Math.round(Date.now() + this.app.clock.deadline), timetag: Math.round(Date.now() + (this.nudge - this.app.clock.deviation)),
} as OSCMessage); } as OSCMessage);
} }
}; };