Skip to content

Commit

Permalink
Fix XG voices in NS5R multi dump.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Nov 17, 2023
1 parent d613e06 commit 171085b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4031,7 +4031,8 @@ let OctaviaDevice = class extends CustomEventSource {
switch (i % 92) {
case 0: {
// MSB Bank
upThis.#cc[chOff + ccToPos[0]] = e || 121;
upThis.#cc[chOff + ccToPos[0]] = e;
// Needs an MSB = 125 for XG fallback
upThis.dispatchEvent("voice", {
part
});
Expand All @@ -4040,6 +4041,9 @@ let OctaviaDevice = class extends CustomEventSource {
case 1: {
// LSB Bank
upThis.#cc[chOff + ccToPos[32]] = e;
if (!e && !upThis.#cc[chOff + ccToPos[0]]) {
upThis.#cc[chOff + ccToPos[0]] = 121;
};
upThis.dispatchEvent("voice", {
part
});
Expand Down

0 comments on commit 171085b

Please sign in to comment.