From 4ff2ce0b9c189c769c04c988f2d77271f1bb475c Mon Sep 17 00:00:00 2001 From: 3dtours Date: Sun, 26 Jul 2026 17:11:50 +0700 Subject: [PATCH] chore: add drum toggle log to wiki --- wiki.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wiki.md b/wiki.md index c9d70f2..3bf83fd 100644 --- a/wiki.md +++ b/wiki.md @@ -1,3 +1,9 @@ +### [2026-07-26 17:10] Task: Add Drum channel toggle on track panel +- **Tóm tắt thay đổi:** Thêm button 🥁 trên track panel (giữa Solo và Record) để chuyển track sang drum channel 9. Khi active: set `is_percussion=true`, `soundfont_bank=128`. Thêm 🥁 indicator cho percussion presets (bank=128) trong instrument selector. +- **Các file ảnh hưởng:** `app/static/js/app.jsx` +- **Ghi chú/Test (nếu có):** Click 🥁 → track chuyển drum mode → render chạy channel 9. +--- + ### [2026-07-26 17:05] Task: Fix FluidSynth API mismatch (silent fallback) - **Tóm tắt thay đổi:** Pyfluidsynth thực tế là low-level CFFI wrapper, không có class `FluidSynth()`. Dùng sai API → tất cả SoundFont render fallback về oscillator (silence). Fix: dùng `new_fluid_synth`, `fluid_synth_sfload`, `fluid_synth_program_select`, `fluid_synth_write_s16_stereo`. Đồng bộ internal clock bằng cách render silence qua `write_s16_stereo` thay vì chỉ advance cursor. - **Các file ảnh hưởng:** `app/core/render_engine.py`