Skip to content

Commit

Permalink
A more aggressive param for meta GC cycles.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jul 20, 2024
1 parent e2d5823 commit 780d518
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cambiare/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ HTMLElement.prototype.setTextRaw = function (text) {
};

let Cambiare = class extends RootDisplay {
#metaGcLine = 32;
#metaGcLine = 16;
#metaGcStart = 64;
#metaMaxLine = 128;
#metaAmend = false;
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -1181,7 +1181,7 @@ let Cambiare = class extends RootDisplay {
break;
};
};
}, 100);
}, 40);
upThis.dispatchEvent("mode", "?");
upThis.dispatchEvent("mastervolume", 100);
upThis.dispatchEvent("tempo", 120);
Expand Down
2 changes: 1 addition & 1 deletion src/state/bankReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 780d518

Please sign in to comment.