Skip to content

Commit

Permalink
Sped the MU reset blinking speed up.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Feb 22, 2024
1 parent d184671 commit 4299b8c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/disp/disp_mu.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ mprHeight = 4,
mpaHeight = 3;

const exDuration = 1000,
exExhaust = 400;
exExhaust = 400,
blinkSpeedMode = 320;

const modeGroup = {
"?": 0,
Expand Down Expand Up @@ -182,7 +183,7 @@ let MuDisplay = class extends RootDisplay {
upThis.#bmdb[i] = e;
});
upThis.#bmst = 2;
upThis.#bmex = Date.now() + 1600;
upThis.#bmex = Date.now() + blinkSpeedMode * 4;
});
upThis.addEventListener("channelactive", (ev) => {
upThis.#ch = ev.data;
Expand Down Expand Up @@ -516,7 +517,7 @@ let MuDisplay = class extends RootDisplay {
getDebugState() && console.debug(`SysEx prompt cancelled.`);
};
useBm.forEach((e, i, a) => {
let crit = Math.floor((this.#bmex - timeNow) / 400);
let crit = Math.floor((this.#bmex - timeNow) / blinkSpeedMode);
a[i] = crit % 2 == e;
});
};
Expand Down

0 comments on commit 4299b8c

Please sign in to comment.