From 87655f4275ddb28449bd38fa0bbcfdb21cc1cd6b Mon Sep 17 00:00:00 2001 From: 3dtours Date: Sun, 26 Jul 2026 20:47:28 +0700 Subject: [PATCH] chore: add timeline fix log --- wiki.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wiki.md b/wiki.md index fa78ef5..e36cf73 100644 --- a/wiki.md +++ b/wiki.md @@ -342,3 +342,9 @@ - **Files:** `app/static/js/app.jsx`, `app/static/js/app.precompiled.js`, `app/core/render_engine.py` - **Tests:** `pytest` - 61 passed, 1 pre-existing failure. --- + +### [2026-07-26 20:45] Task: Fix timeline play — schedule noteOn via setTimeout +- **Tóm tắt thay đổi:** SpessaSynth noteOn(ch, pitch, vel, enableReverb) không nhận exactAudioTime. Timeline truyền startTime vào vị trí thứ 4 → SpessaSynth ép kiểu thành enableReverb=true → tất cả notes play ở T=0. Fix: tính delay = startTime - currentTime, dùng setTimeout để schedule noteOn đúng thời điểm. +- **Các file ảnh hưởng:** app/static/js/services/soundfontPlayer.js, app/static/js/app.precompiled.js +- **Ghi chú/Test (nếu có):** MIDI keyboard play ngay. Timeline play các note đúng thời điểm. +---