fix(midi): playback khong cam loop pass 2+ va note cung pitch khong bi cat (bugs 1-2) - set isPlayingRef truoc bridge PLAY (startTrackPlayback/local/piano-roll), cancel STOP#2 retry khi loop restart; dedupe NOTE_OFF theo channel:pitch (pendingNoteOffMap + scheduleNoteOff) de NOTE_OFF tre (dur+30ms) khong cat note-on cung pitch ke tiep (bar lien nhau, piano roll note chong), clear map khi stop; sync 5 ban JS + index.html ?v=202608181807, rebuild exe release

This commit is contained in:
2026-08-18 18:13:36 +07:00
parent 6b6328044c
commit 45a15da55e
5 changed files with 2157 additions and 2021 deletions
@@ -75,6 +75,12 @@
try {
var s = await window.__TAURI__.core.invoke('bridge_status');
this._notifyStatus(!!s.connected);
// V10: C++ loaded channels (bridge_state.json) — nguồn path thật không
// cần HTTP/auth. loadVstToBridge/ensureAndOpenVstGui dùng để mở GUI khi
// JS không resolve được path (token hết hạn / listPlugins thiếu path).
if (s && Array.isArray(s.loaded_channels)) {
window.__bridgeLoadedState = s.loaded_channels;
}
return s;
} catch (e) {
this._notifyStatus(false);