T6: scheduler items qua router - note-on/off TIMELINE_SCHEDULER (startTime audio clock support trong router+TrackInstrument); 8 site scheduler (timeline/section/local/piano-roll/ghost) route UnifiedMidiRouter, fallback SonicSF, tracker doi xung qua note-off setTimeout

This commit is contained in:
2026-08-11 15:48:21 +07:00
parent 2001d1c601
commit 9dcc37e037
4 changed files with 112 additions and 87 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ window.SonicUnifiedMidiRouter = window.SonicUnifiedMidiRouter || {};
// Chỉ trigger âm ở note-on đầu tiên; các note-on trùng key chỉ tăng
// count (sustain lặp) — note-off cuối cùng mới tắt voice.
if (cur.count === 1 && engine && engine.playNote) {
try { engine.playNote(pitch, vel, evt.durationMs || 500); } catch (e) {}
try { engine.playNote(pitch, vel, evt.durationMs || 500, evt.startTime); } catch (e) {}
}
return true;
}