debug(midi): PUSH_CALL fingerprint + PUSH_EXC + ?v=202608250051 — isolate stale-JS vs pushEvent break

This commit is contained in:
2026-08-25 07:52:59 +07:00
parent 60d1eee107
commit 109a8f5c5b
3 changed files with 21 additions and 19 deletions
+3 -1
View File
@@ -24618,7 +24618,9 @@ const App = () => {
if (epoch !== bridgeNoteEpochRef.current) return;
if (!guardPlay()) return;
if (window.__sfDiag) window.__sfDiag('DISPATCH_ON track=' + trkId + ' p=' + (pitch || 60));
try { window.SonicMidiRouter.pushEvent({ cmd: 'NOTE_ON', channel: trkId, pitch: pitch || 60, velocity: velocity || 0.8, percussion: isPerc }); } catch (e) {}
var _rt = window.SonicMidiRouter;
if (window.__sfDiag) window.__sfDiag('PUSH_CALL router=' + (typeof _rt) + ' push=' + (_rt ? typeof _rt.pushEvent : 'none') + ' ver=' + (_rt && _rt.pushEvent ? (_rt.pushEvent.toString().indexOf('PUSH_ROUTE') >= 0 ? 'new' : 'old') : 'na') + ' brAct=' + (_rt ? _rt.isBridgeActive() : 'na'));
try { window.SonicMidiRouter.pushEvent({ cmd: 'NOTE_ON', channel: trkId, pitch: pitch || 60, velocity: velocity || 0.8, percussion: isPerc }); } catch (e) { if (window.__sfDiag) window.__sfDiag('PUSH_EXC ' + (e && e.message)); }
}, delayMs);
scheduleNoteOff('B:' + trkId + ':' + (pitch || 60), function () {
if (epoch !== bridgeNoteEpochRef.current) return;
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -39,9 +39,9 @@
<script src="/static/js/services/storage.js?v=202608038200"></script>
<script src="/static/js/services/soundfontStorage.js?v=202607271016"></script>
<script src="/static/js/services/soundfontPlayer.js?v=202608101800"></script>
<script src="/static/js/services/nativeBridgeService.js?v=202608250112"></script>
<script src="/static/js/services/nativeBridgeService.js?v=202608250051"></script>
<script src="/static/js/services/bridgeAudioNode.js?v=202608250107"></script>
<script src="/static/js/services/unifiedMidiRouter.js?v=202608250112"></script>
<script src="/static/js/services/unifiedMidiRouter.js?v=202608250051"></script>
<script src="/static/js/services/audioRoutingEngine.js?v=202608250107"></script>
<script src="/static/js/services/aiGateway.js?v=202608037200"></script>
<script src="/static/js/services/dawCommandDispatcher.js?v=202607271016"></script>
@@ -51,7 +51,7 @@
<script src="/static/js/services/promptTemplateManager.js?v=202607281039"></script>
<script src="/static/js/services/undoRedoEngine.js?v=202607290941"></script>
<script src="/static/js/services/chordTheory.js?v=202608211300"></script>
<script src="/static/js/app.precompiled.js?v=202608250110" defer></script>
<script src="/static/js/app.precompiled.js?v=202608250051" defer></script>
<link rel="stylesheet" href="/static/css/styles.css?v=202607271016">
<style>
:root {