feat: switch track volume to dB scale with Logic Pro-style fader (−∞dB ~ +12dB)

This commit is contained in:
Xiaohan-Tian
2026-05-01 11:38:35 -07:00
parent 77885c8e2e
commit 95ca3394a8
11 changed files with 265 additions and 59 deletions
+3 -1
View File
@@ -63,7 +63,9 @@ export const KEY_SIGNATURE_MAP = {
export const AUDIO_INTERFACE_CONSTANTS = {
DEFAULT_MASTER_VOLUME: 0.8,
DEFAULT_TRACK_VOLUME: 0.8,
DEFAULT_TRACK_VOLUME: 0, // 0 dB (unity gain)
MIN_TRACK_VOLUME_DB: -60, // practical floor; displayed as −∞
MAX_TRACK_VOLUME_DB: 12,
};
export const SAMPLER_CONSTANTS = {