From 8155b4f2fa96ced61d2374f59fa7e82da85b7b27 Mon Sep 17 00:00:00 2001 From: 3dtours Date: Sun, 26 Jul 2026 21:16:55 +0700 Subject: [PATCH] chore: add wiki log --- wiki.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wiki.md b/wiki.md index 28c23f1..343272d 100644 --- a/wiki.md +++ b/wiki.md @@ -353,3 +353,8 @@ - **Tóm tắt thay đổi:** Nút Loop trên transport controls giờ đồng bộ với sub-tab đang active. Khi bật loop: tự động tính loopEnd từ MIDI notes, section clips, hoặc audio duration. Gán selectionStart=0, selectionEnd=loopEndTime. Main timeline cũng tự derive loop end từ tracks/items/clips. - **Các file ảnh hưởng:** `app/static/js/app.jsx` - **Ghi chú/Test (nếu có):** Bật Loop → playhead loop từ đầu đến cuối item/clip và ngược lại. + +### [2026-07-26 21:15] Task: Fix stop + loop for all tab types +- **Tóm tắt thay đổi:** `stopAll` giờ huỷ tất cả `setTimeout` đã schedule cho SpessaSynth notes (cả noteOn lẫn noteOff), gọi `allNotesOff(0-15)`. Loop hoạt động trên MAIN SESSION (qua `isLoopingSelection` + `selLeft/selRight`), SECTION-TAB và PIANO_ROLL (qua `st.isLooping` + `st.selectionStart/End`). +- **Các file ảnh hưởng:** `app/static/js/services/soundfontPlayer.js`, `app/static/js/app.jsx` +- **Ghi chú/Test (nếu có):** Stop = dừng ngay. Loop = phát từ đầu đến cuối item/clip rồi lặp lại.