Skip to content

Commit

Permalink
Supported SC display type switch SysEx.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jun 16, 2024
1 parent e71c596 commit f9a8bd9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3901,6 +3901,23 @@ let OctaviaDevice = class extends CustomEventSource {
//getDebugState() && console.debug(`GS display text "${upThis.#letterDisp}".`);
break;
};
case 8: {
let offset = msg[1];
let scConf = upThis.modelEx.sc;
console.debug("HORNY DEE");
msg.subarray(2).forEach((e, i) => {
([() => {
scConf.showBar = !(e & 1);
scConf.invBar = (e >> 1) & 1;
scConf.invDisp = (e >> 2) & 1;
}, () => {
scConf.peakHold = e < 4 ? e : 1;
}][i + offset] || (() => {
console.debug(`Unsupported GS display type SysEx.`);
}))();
});
break;
};
case 32: {
upThis.#bitmapExpire = Date.now() + 3200;
if (msg[1] == 0) {
Expand Down

0 comments on commit f9a8bd9

Please sign in to comment.