From fb4d26a2f43958b479945f1a20e737cd3a1b3873 Mon Sep 17 00:00:00 2001 From: Extremesecrecy <10959169+extremesecrecy@users.noreply.github.com> Date: Sun, 27 Jul 2025 15:03:38 -0700 Subject: [PATCH] TEMPORARY Logging console.error login so we can see why this is failing TEMPORARY --- vite/src/pipedal/PiPedalModel.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/vite/src/pipedal/PiPedalModel.tsx b/vite/src/pipedal/PiPedalModel.tsx index 176071c..c6ea096 100644 --- a/vite/src/pipedal/PiPedalModel.tsx +++ b/vite/src/pipedal/PiPedalModel.tsx @@ -2225,6 +2225,8 @@ export class PiPedalModel //implements PiPedalModel m = message.toString(); } this.alertMessage.set(m); + // TEMPORARY DEBUGGING: Log alert messages to console. Remove later. + console.error("PiPedalModel Alert:", m); } @@ -2532,14 +2534,20 @@ export class PiPedalModel //implements PiPedalModel this.webSocket?.request("setJackServerSettings", jackServerSettings) .catch((error) => { this.showAlert(error); + // TEMPORARY DEBUGGING: Log saving errors to console. Remove later. + console.error("setJackServerSettings failed:", error); }); } applyJackServerSettings(jackServerSettings: JackServerSettings): void { - this.webSocket?.request("applyJackServerSettings", jackServerSettings) - .catch((error) => { - this.showAlert(error); - }); - } + // CONSISTENCY FIX: Ensure local model state is updated immediately. + this.jackServerSettings.set(jackServerSettings.clone()); + this.webSocket?.request("applyJackServerSettings", jackServerSettings) + .catch((error) => { + this.showAlert(error); + // TEMPORARY DEBUGGING: Log applying errors to console. Remove later. + console.error("applyJackServerSettings failed:", error); + }); +} updateVst3State(pedalboard: Pedalboard) { // let it = pedalboard.itemsGenerator();