From dcd438805372e10196ae9de22a2760a903bb93f8 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Fri, 27 Oct 2023 09:52:29 +0200 Subject: [PATCH] connecting resume to the interface --- src/Clock.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Clock.ts b/src/Clock.ts index 053db67..9a6081f 100644 --- a/src/Clock.ts +++ b/src/Clock.ts @@ -184,7 +184,11 @@ export class Clock { */ this.app.audioContext.resume(); this.app.api.MidiConnection.sendStartMessage(); - this.transportNode?.start(); + if (this.tick > 0) { + this.transportNode?.resume(); + } else { + this.transportNode?.start(); + } } public pause(): void {