# Mastering Expand — Extension Modules & Dynamic Chain Tài liệu cho các module mở rộng của Mastering modal (MasteringModal) và Track FX chain. ## §II.1 EQ Preset Library - Thư viện preset EQ band-gain dùng chung cho track EQ. - Code: `app/static/js/app.jsx` (EQ Preset Library, `EQ_PRESETS`). - Ứng dụng: Mastering modal EQ module, Track Strip EQ. ## §II.2 Bus Compressor Module - Module nén masterbus đặt trong MasteringModal, giữa các module chain. - Code: `app/static/js/app.jsx` (Bus Compressor module trong MasteringModal JSX). - Điều khiển: threshold, ratio, attack, release, makeup gain; bypass riêng. ## §II.3 rebuildAudioGraph / Dynamic Module Chain - `rebuildAudioGraph`: dựng lại đồ thị WebAudio động theo thứ tự module chain. - Thứ tự module: chain strip trong MasteringModal cho phép thêm/xóa/bỏ/bypass module, thay đổi thứ tự — audio graph được rebuild tương ứng. - Default = chain cũ (`mastering_expand.md: extension modules + dynamic chain`). - Code: `app/static/js/app.jsx` (MODULE CHAIN STRIP dynamic). ## §II.4 Track FX Module Factory - Factory tạo module FX theo loại (EQ, compressor, ...) cho track FX chain. - Dùng chung cho Track FX chain editor trong track strip (`Track FX Chain (mastering_expand.md §II.4)`). - Code: `app/static/js/app.jsx` (Track FX module factory). ## §III ADD MODULE POPUP - Popup thêm module mới vào chain (chọn loại module rồi append). - Code: `app/static/js/app.jsx` (ADD MODULE POPUP trong MasteringModal).