From 780d5188d2069c7caba0831d8449fbe376442af1 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, 20 Jul 2024 08:28:17 +0000 Subject: [PATCH] A more aggressive param for meta GC cycles. --- src/cambiare/index.mjs | 6 +++--- src/state/bankReader.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cambiare/index.mjs b/src/cambiare/index.mjs index 83dccd5..69b8edb 100644 --- a/src/cambiare/index.mjs +++ b/src/cambiare/index.mjs @@ -200,7 +200,7 @@ HTMLElement.prototype.setTextRaw = function (text) { }; let Cambiare = class extends RootDisplay { - #metaGcLine = 32; + #metaGcLine = 16; #metaGcStart = 64; #metaMaxLine = 128; #metaAmend = false; @@ -1138,7 +1138,7 @@ let Cambiare = class extends RootDisplay { upThis.#metaLastLine ]); if (upThis.#sectMeta.view.children.length > upThis.#metaGcStart) { - upThis.#metaGcAt = Date.now() + 1000; + upThis.#metaGcAt = Date.now() + 250; upThis.#metaGcScheduled = 1; }; while (upThis.#sectMeta.view.children.length > upThis.#metaMaxLine) { @@ -1181,7 +1181,7 @@ let Cambiare = class extends RootDisplay { break; }; }; - }, 100); + }, 40); upThis.dispatchEvent("mode", "?"); upThis.dispatchEvent("mastervolume", 100); upThis.dispatchEvent("tempo", 120); diff --git a/src/state/bankReader.js b/src/state/bankReader.js index 22643a5..259656f 100644 --- a/src/state/bankReader.js +++ b/src/state/bankReader.js @@ -677,7 +677,7 @@ let VoiceBank = class { }; }; return { - name: bankName || `${noVoxCatPool[mode]}${halfHex(msb || 0)}${halfHex(prg || 0)}${halfHex(lsb || 0)}`, + name: bankName || `${noVoxCatPool[mode] || mode.toUpperCase()}${halfHex(msb || 0)}${halfHex(prg || 0)}${halfHex(lsb || 0)}`, poly: bankPoly, type: bankType, drum: bankDrum,