Skip to content

Commit 7384972

Browse files
Adjusted MU SysEx prompt exhaust values.
1 parent 69ae263 commit 7384972

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/disp/disp_mu.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mprHeight = 4,
1616
mpaHeight = 3;
1717

1818
const exDuration = 800,
19-
exExhaust = 720;
19+
exExhaust = 640;
2020

2121
const modeGroup = {
2222
"?": 0,
@@ -206,7 +206,7 @@ let MuDisplay = class extends RootDisplay {
206206
});
207207
upThis.device.addEventListener("mupromptex", () => {
208208
upThis.#scheduledEx = true;
209-
console.debug(`Scheduled a SysEx prompt.`);
209+
//console.debug(`Scheduled a SysEx prompt.`);
210210
});
211211
upThis.clockSource = upThis.clockSource || {
212212
now: () => {
@@ -236,9 +236,9 @@ let MuDisplay = class extends RootDisplay {
236236
upThis.#scheduledEx = false;
237237
if (timeNow - upThis.#promptEx > exExhaust) {
238238
upThis.#unresolvedEx = true;
239-
console.debug(`SysEx prompt submitted.`);
239+
//console.debug(`SysEx prompt submitted.`);
240240
} else {
241-
console.debug(`SysEx prompt too busy.`);
241+
//console.debug(`SysEx prompt too busy.`);
242242
};
243243
upThis.#awaitEx = timeNow;
244244
};
@@ -459,7 +459,7 @@ let MuDisplay = class extends RootDisplay {
459459
if (upThis.#unresolvedEx) {
460460
upThis.#unresolvedEx = false;
461461
upThis.#promptEx = timeNow;
462-
console.debug(`SysEx prompt resolved.`);
462+
//console.debug(`SysEx prompt resolved.`);
463463
};
464464
this.#bmst = 0;
465465
let standard = upThis.getChVoice(this.#ch).standard.toLowerCase();

src/state/index.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,6 +2224,7 @@ let OctaviaDevice = class extends CustomEventSource {
22242224
};
22252225
}).add([76, 2, 1], (msg) => {
22262226
// XG reverb, chorus and variation
2227+
upThis.dispatchEvent("mupromptex");
22272228
let dPref = "XG ";
22282229
if (msg[0] < 32) {
22292230
// XG reverb
@@ -2445,6 +2446,7 @@ let OctaviaDevice = class extends CustomEventSource {
24452446
});
24462447
}).add([76, 8], (msg, track) => {
24472448
// XG part setup
2449+
upThis.dispatchEvent("mupromptex");
24482450
let part = upThis.chRedir(msg[0], track, true),
24492451
id = msg[1],
24502452
chOff = allocated.cc * part,
@@ -2733,6 +2735,7 @@ let OctaviaDevice = class extends CustomEventSource {
27332735
console.warn(`Unknown PLG-100SG data: ${msg}`);
27342736
};
27352737
}).add([98, 0], (msg, track, id) => {
2738+
upThis.dispatchEvent("mupromptex");
27362739
// PLG-DX native dump
27372740
let size = msg[0], realSize = msg.length - 5,
27382741
lastIndex = msg.length - 1;
@@ -2875,6 +2878,7 @@ let OctaviaDevice = class extends CustomEventSource {
28752878
let sysExDrumsY = function (drumId, msg) {
28762879
// The Yamaha XG-style drum setup
28772880
//console.debug(`XG-style drum setup on set ${drumId + 1}:\n`, msg);
2881+
upThis.dispatchEvent("mupromptex");
28782882
let drumOff = drumId * allocated.dpn;
28792883
let note = msg[0], offset = msg[1];
28802884
msg.subarray(2).forEach((e, i) => {

0 commit comments

Comments
 (0)