Skip to content

Commit

Permalink
Peeking at Space Quest 4 for MT-32 dev drum setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Sep 18, 2023
1 parent 5d73211 commit 0a8adca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3437,8 +3437,8 @@ let OctaviaDevice = class extends CustomEventSource {
upThis.switchMode("mt32");
if (msg[0]) {
// Rhythm setup
let offset = msg[1] - 16;
console.debug(`MT-32 dev drum setup`, msg.subarray(0, 2), msg.subarray(2));
let offset = ((msg[0] - 1) << 7) + msg[1] - 16;
getDebugState() && console.debug(`MT-32 dev drum setup (${offset})`, msg.subarray(0, 2), msg.subarray(2));
} else {
// Part setup
let offset = msg[1];
Expand Down

0 comments on commit 0a8adca

Please sign in to comment.