Skip to content

Commit

Permalink
Fixed random pan in MU, which should show nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Oct 7, 2024
1 parent 552ba86 commit 7b91ef3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/disp/disp_mu.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -591,14 +591,13 @@ let MuDisplay = class extends RootDisplay {
ctx.strokeStyle = "#000f";
ctx.stroke();
let pan = sum.chContr[chOff + ccToPos[10]];
upThis.#panStrokes.forEach((e, i, a) => {a[i] = 0});
upThis.#panStrokes.fill(0);
if (pan == 0) {
upThis.#panStrokes[0] = 1;
} else if (pan == 64) {
upThis.#panStrokes[3] = 1;
} else if (pan == 128) {
upThis.#panStrokes[1] = 1;
upThis.#panStrokes[5] = 1;
// Real MU doesn't show anything for random panning
} else if (pan < 64) {
upThis.#panStrokes[Math.floor(pan / 21)] = 1;
} else {
Expand Down

0 comments on commit 7b91ef3

Please sign in to comment.