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,