connecting resume to the interface

This commit is contained in:
2023-10-27 09:52:29 +02:00
parent da70a6007a
commit dcd4388053

View File

@ -184,8 +184,12 @@ export class Clock {
*/ */
this.app.audioContext.resume(); this.app.audioContext.resume();
this.app.api.MidiConnection.sendStartMessage(); this.app.api.MidiConnection.sendStartMessage();
if (this.tick > 0) {
this.transportNode?.resume();
} else {
this.transportNode?.start(); this.transportNode?.start();
} }
}
public pause(): void { public pause(): void {
/** /**