From 2637a6813e97368b70a4d1699143d5141e563cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lumi=C3=A8re=20=C3=89lev=C3=A9?= <88174309+PoneyClairDeLune@users.noreply.github.com> Date: Thu, 1 Aug 2024 18:21:45 +0000 Subject: [PATCH] Suppress voice change until program change. cc0 and cc32 alone no longer cause voice changes. Partially addresses #50. --- src/state/index.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/state/index.mjs b/src/state/index.mjs index 8bc8e26..4f19871 100644 --- a/src/state/index.mjs +++ b/src/state/index.mjs @@ -895,9 +895,9 @@ let OctaviaDevice = class extends CustomEventSource { break; }; }; - this.dispatchEvent("voice", { + /* this.dispatchEvent("voice", { part - }); + }); */ break; }; case 2: { @@ -1009,9 +1009,9 @@ let OctaviaDevice = class extends CustomEventSource { if (this.getExt(part)[0] == this.EXT_DX) { //this.#cc.subarray(chOff + ccToPos[142], chOff + ccToPos[157] + 1).fill(64); }; - this.dispatchEvent("voice", { + /*this.dispatchEvent("voice", { part - }); + });*/ break; }; case 38: {