move draw stuff from tone to core + fix getPhase

This commit is contained in:
Felix Roos 2022-11-13 01:42:00 +01:00
parent c722904831
commit e769ed2fd8
17 changed files with 259 additions and 5684 deletions

View file

@ -46,8 +46,8 @@ export class Cyclist {
interval, // duration of each cycle
);
}
getPhase(latencyCompensation = true) {
return this.phase - (latencyCompensation ? this.latency : 0);
getPhase() {
return this.getTime() - this.origin;
}
setStarted(v) {
this.started = v;