From ef6370f92e3e47603c59b1c0b9381716d298a050 Mon Sep 17 00:00:00 2001 From: 3dtours Date: Fri, 31 Jul 2026 08:23:38 +0700 Subject: [PATCH] =?UTF-8?q?FIX:=20l=E1=BB=97i=20c=E1=BA=AFt=20MIDI=20note?= =?UTF-8?q?=20th=C3=A0nh=20nhi=E1=BB=81u=20notes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wiki.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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.