Skip to content

Commit

Permalink
onmetacommit.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Aug 23, 2023
1 parent e095c3c commit 89338c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/basic/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ let RootDisplay = class extends CustomEventSource {
this.device.addEventListener("screen", function (ev) {
upThis.dispatchEvent("screen", ev.data);
});
this.device.addEventListener("metacommit", function (ev) {
upThis.dispatchEvent("metacommit", ev.data);
});
this.#metaRun[3] = function (type, data) {
if (upThis.#titleName?.length < 1) {
upThis.#titleName = data;
Expand Down
4 changes: 2 additions & 2 deletions src/state/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ let OctaviaDevice = class extends CustomEventSource {
this.#metaChannel = data[0] + 1;
};
this.#metaRun[33] = function (data, track) {
console.debug(`Track ${track} requests to get assigned to output ${data}.`);
//console.debug(`Track ${track} requests to get assigned to output ${data}.`);
upThis.#trkAsReq[track] = data + 1;
};
this.#metaRun[81] = function (data, track) {
Expand Down Expand Up @@ -1592,7 +1592,7 @@ let OctaviaDevice = class extends CustomEventSource {
this.#seCs = new BinaryMatch("Casio");
// Notifies unrecognized SysEx strings with their vendors
let syxDefaultErr = function (msg) {
console.info(`Unrecognized SysEx in "${this.name}" set.`, msg);
console.info(`Unrecognized SysEx in "${this.name}" set.\n%o`, msg);
};
this.#seUnr.default = syxDefaultErr;
this.#seUr.default = syxDefaultErr;
Expand Down

0 comments on commit 89338c7

Please sign in to comment.