Skip to content

Commit

Permalink
Prepare for GM2 provider...
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Oct 11, 2024
1 parent 6190785 commit e6e1e53
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
25 changes: 24 additions & 1 deletion src/state/bankReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,31 @@ let VoiceBank = class {
};
break;
};
case "g2":
case "sd": {
switch (msb) {
case 121: {
args[0] = 96;
break;
};
case 120: {
args[0] = 104;
break;
};
};
if ((args[0] >> 1) == 40) {
args[2] |= 16;
} else if (args[0] > 95 && args[0] < 100) {
args[2] |= 16;
if (prg >> 4 == 7) {
args[0] = 96;
};
};
break;
};
case "g2": {
// Should only be present under SD mode
// However before non-resetting mode switches are available
// This is the only way
if ((msb >> 1) == 40) {
args[2] |= 16;
} else if (msb > 95 && msb < 100) {
Expand Down
4 changes: 2 additions & 2 deletions src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,10 +1111,10 @@ let OctaviaDevice = class extends CustomEventSource {
upThis.setChActive(part, 1);
};
};
if (upThis.getExt(part)[0] == upThis.EXT_DX) {
/* if (upThis.getExt(part)[0] == upThis.EXT_DX) {
let chOff = ccOffTable[part];
//this.#cc.subarray(chOff + ccToPos[142], chOff + ccToPos[157] + 1).fill(64);
};
}; */
upThis.#prg[part] = det.data;
upThis.#bnCustom[part] = 0;
upThis.pushChPrimitives(part);
Expand Down

0 comments on commit e6e1e53

Please sign in to comment.