diff --git a/wiki.md b/wiki.md index 616cc94..37cc354 100644 --- a/wiki.md +++ b/wiki.md @@ -409,3 +409,8 @@ - **MIDI channel**: truyền msg.data[0]&0x0F vào playNote/stopNote - **CC64 sustain/CC1 modulation**: forward qua SonicSF.controllerChange - **Pitch Bend**: forward qua SonicSF.pitchBend (14-bit) + +### [2026-07-27 11:20] Fix: All Notes Off (CC123) before MIDI NoteOn +- **Nguyên nhân:** SoundFonts như saxophone có release envelope dài, noteOff không tắt âm ngay +- **Fix:** Gửi `controllerChange(ch, 123, 0)` = All Notes Off trước mỗi NoteOn từ MIDI keyboard +- **Kết quả:** Note trước tắt ngay khi play note mới, không còn đè âm