From dc535bc46d496f90d7153d6a5d678060e43feb27 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: Sat, 23 Sep 2023 11:02:02 +0000 Subject: [PATCH] Max padding for letter displays are now 16. --- src/state/index.mjs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/state/index.mjs b/src/state/index.mjs index 5570b752..98f11c1c 100644 --- a/src/state/index.mjs +++ b/src/state/index.mjs @@ -1228,7 +1228,7 @@ let OctaviaDevice = class extends CustomEventSource { }; }); upThis.#letterExpire = Date.now() + 3200; - upThis.#letterDisp = upThis.#letterDisp.padEnd(32, " "); + upThis.#letterDisp = upThis.#letterDisp.padEnd(16, " "); if (invalidCp) { invalidCp = Array.from(invalidCp); invalidCp.forEach((e, i, a) => { @@ -2494,14 +2494,14 @@ let OctaviaDevice = class extends CustomEventSource { // variation commitSlot = 31; }][key - 2] || (() => { - console.debug(`Unknown XG-style drum param ${key} on set ${drumId + 1}.`); + console.debug(`Unknown GS-style drum param ${key} on set ${drumId + 1}.`); }))(); }; if (commitSlot > -1) { getDebugState() && console.debug(drumOff, commitSlot, note, e); upThis.#drum[(drumOff + dnToPos[commitSlot]) * allocated.dnc + note] = e; } else { - getDebugState() && console.debug(`XG-style drum param ${key} has no writes.`); + getDebugState() && console.debug(`GS-style drum param ${key} has no writes.`); }; }); }; @@ -2944,6 +2944,7 @@ let OctaviaDevice = class extends CustomEventSource { // GS display letter let offset = msg[1]; upThis.setLetterDisplay(msg.subarray(2), "GS display text", offset); + getDebugState() && console.debug(`GS display text "${upThis.#letterDisp}".`); break; }; case 32: { @@ -2969,7 +2970,7 @@ let OctaviaDevice = class extends CustomEventSource { upThis.#bitmapStore[realPage] = new Uint8Array(256); }; let target = upThis.#bitmapStore[realPage]; - getDebugState() && console.debug(`GS frame draw page ${realPage}.\n`); + getDebugState() && console.debug(`GS frame draw page ${realPage}.`); let offset = msg[1] & 63; target.fill(0); // Init let workArr = msg.subarray(2);