Skip to content

Commit

Permalink
DX7+ channel note reset?
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jan 10, 2024
1 parent 3454c33 commit affaef4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2445,21 +2445,22 @@ let OctaviaDevice = class extends CustomEventSource {
console.warn(`Unknown PLG-100SG data: ${msg}`);
};
}).add([100, 0], (msg, track, id) => {
// Unknown Yamaha DX7 dump SysEx
// Unknown Yamaha DX7+ dump SysEx
let dumpString = msg.subarray(0, msg.length - 1)
let expectedChecksum = gsChecksum(dumpString);
let receivedChecksum = msg[msg.length - 1];
if (expectedChecksum != receivedChecksum) {
console.warn(`Yamaha DX7 dump SysEx checksum mismatch! Expected ${expectedChecksum}, but got ${receivedChecksum}:\n`, msg);
return;
} else {
// Placeholder until further documentation
console.debug(`Yamaha DX7 dump SysEx passed checksum validation.\n`, msg);
dxDump.run(dumpString);
};
});
// DX7 Dumps
// Placeholder until further documentation
dxDump.add([0, 14, 31], (msg) => {
upThis.#cc[allocated.cc * msg[0] + ccToPos[64]] = 0;
upThis.#ua.ano(msg[0]);
console.debug(`Yamaha DX7 reset CH${msg[0] + 1}.`);
});
let sysExDrumWrite = function (drumId, note, key, value) {};
Expand Down

0 comments on commit affaef4

Please sign in to comment.