diff --git a/wiki.md b/wiki.md index 269f78e..b4efb79 100644 --- a/wiki.md +++ b/wiki.md @@ -945,3 +945,15 @@ 3. Thêm `.catch()` vào `loadAudioBuffersForTracks` trong `handleOpenProject` và `restoreLastSessionProject` để tránh unhandled promise rejection gây gián đoạn load project. - **Các file ảnh hưởng:** `app/static/js/app.jsx`, `app/static/js/app.precompiled.js` - **Ghi chú/Test (nếu có):** Cần reload page và test Open Project + Mixer Panel sau fix. + +### [2026-07-31 08:01] Task: Fix MIDI note creation duration & add Ctrl+Shift+Click split +- **Tóm tắt thay đổi:** + 1. Thêm `lastNoteDurationRef` để ghi nhớ duration của note vừa tạo → click tạo note mới dùng duration đó thay vì snap duration mặc định. + 2. Ctrl+Shift+Click vào giữa MIDI note → tách note đó thành 2 notes tại vị trí click. Ctrl+Shift+Click vào vùng trống → nhân bản các note đang chọn (giữ hành vi cũ). +- **Các file ảnh hưởng:** `app/static/js/app.jsx`, `app/static/js/app.precompiled.js` +- **Ghi chú/Test (nếu có):** Kiểm tra: 1) tạo note → thay đổi duration → tạo note mới → duration được kế thừa. 2) Ctrl+Shift+Click giữa note → note bị cắt thành 2. + +### [2026-07-31 08:09] Task: Bump precompiled cache version for piano roll split fix +- **Tóm tắt thay đổi:** Cập nhật cache-busting parameter `app.precompiled.js?v=202607310809` để trình duyệt load bản JS mới nhất có fix Ctrl+Shift+Click split MIDI note. +- **Các file ảnh hưởng:** `app/templates/index.html` +- **Ghi chú/Test (nếu có):** Hard reload (Ctrl+F5) để lấy bản JS mới.